update users Set USER_ACCOUNT_DIS = to_timestamp('6/18/2013 1:41:05 PM','YYYY-MM-DD HH24:MI:SS') Where user_id='mytestuser'
Microsoft OLE DB Provider for ODBC Drivers错误'80004005'
[Oracle] [ODBC] [Ora] ORA-01843:不是有效月份
我从经典asp获取日期为“Now()”,见下文:
sqlText4="update users "
sqlText4=sqlText4 & "Set USER_ACCOUNT_DIS = to_timestamp('" & Now()&"','YYYY-MM-DD HH24:MI:SS') "
sqlText4=sqlText4 & " Where user_id='"&p_user_id&"'"
Response.Write sqlText4
objconnencore.Execute(sqlText4)
答案 0 :(得分:0)
to_timestamp()
函数中的格式模板参数错误。
尝试:
to_timestamp('" & Now()&"','MM/DD/YYYY HH:MI:SS PM')