2011-03-28 195 views

回答

1
declare @d datetime = '20110301' 
select datediff(d, 0, @d) + 693596 
+2

+1或許更具可讀性:'datediff(d,'1900-01-01',@d)' – Andomar 2011-03-28 06:39:16

相關問題