日期:2014-05-17  浏览次数:20388 次

2000sql语句
declare @mytime as datetime
set @mytime=getdate()
print @mytime

在2000中运行后 得到的结果不正确

------解决方案--------------------
declare @mytime as datetime
set @mytime=getdate()
SELECT @mytime
--print @mytime

/*
-----------------------
2013-05-13 15:09:16.400
*/

你要这样?
------解决方案--------------------
日期转换可以看这里:http://blog.csdn.net/dba_huangzj/article/details/7657979
拉到最下面