YC3354
2017-10-23 02:43
采纳率: 62.5%
浏览 7.3k

ORA-00907:missing right parenthesis

VB程序中,执行报错!ORA-00907:missing right parenthesis

Dim SQL_UpdateStatus As String

SQL_UpdateStatus = "update Brmemsuser B set B.Status = 'E' where B.Userid not in (" & _
    "Select A.Repairuserid from BRMEMSREPAIRTIME A" & _
    "where A.Logouttime is null) and B.Status = 'I'"

    ED.Execute SQL_UpdateStatusD
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • LT688_58B 2017-10-23 06:33
    已采纳

    你缺少了一个空格。

     Dim SQL_UpdateStatus As String
    
    SQL_UpdateStatus = "update Brmemsuser B set B.Status = 'E' where B.Userid not in (" & _
        "Select A.Repairuserid from BRMEMSREPAIRTIME A " & _
        "where A.Logouttime is null) and B.Status = 'I'"
    
        ED.Execute SQL_UpdateStatus
    
    打赏 评论

相关推荐 更多相似问题