On versions prior to 2012 you can do the formatting with the convert function, then cast as int. declare @dateb datetime set @dateb = getdate() select cast( ...
確定! 回上一頁