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

asp sql语句的问题 本人刚接触asp 求指点
“Update Company_ProductSort Set UpdateTime='"&date()&time()&"' where ID="&ID”
我想把UpdateTime更新为系统时间  yyyy-mm-dd hh:mm:ss 的格式  这样可以吗??

------解决方案--------------------
sql="Update Company_ProductSort Set UpdateTime=getdate() where ID="&ID
“Update Company_ProductSort Set UpdateTime='"& now() &"' where ID="&ID

------解决方案--------------------
“Update Company_ProductSort Set UpdateTime=getdate()' where ID="&ID”

“Update Company_ProductSort Set UpdateTime={fn now()} where ID="&ID”