当前位置: 代码迷 >> Sql Server >> 2000sql话语
  详细解决方案

2000sql话语

热度:1   发布时间:2016-04-24 22:33:48.0
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
拉到最下面
  相关解决方案