UPDATE语句的语法错误
Access.ExecQuery("UPDATE record " & _
"SET (Time_Out=@timeout) " & _
"WHERE Employee=@emp AND Punch_Date=@date " & _
"ORDER BY Time_In ASC LIMIT 1;")
我的语法有什么问题?
答案 0 :(得分:0)
查询应该是这样的:
Access.ExecQuery("UPDATE record " & _
"SET (Time_Out=@timeout) " & _
"WHERE Employee=@emp AND Punch_Date=@date;")
您无法在ORDER BY
查询中使用UPDATE
子句。