“Update Company_ProductSort Set UpdateTime='"&date()&time()&"' where ID="&ID”
我想把UpdateTime更新为系统时间  yyyy-mm-dd hh:mm:ss 的格式  这样可以吗??

解决方案 »

  1.   

    sql="Update Company_ProductSort Set UpdateTime=getdate() where ID="&ID
    “Update Company_ProductSort Set UpdateTime='"& now() &"' where ID="&ID
      

  2.   

    Function UpdateDatime(ID)
        Dim rs,sql
        Set rs = server.CreateObject("adodb.recordset")
        sql = "Update Company_ProductSort Set UpdateTime='"&now()&"' where ID="&ID
        rs.open sql,comm,1,1
        rs.close
        set rs=nothing
    End Function
    报错缺少对象,ID是有值的  这是什么问题
      

  3.   

    “Update Company_ProductSort Set UpdateTime=getdate()' where ID="&ID”

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