YC3354
YC3354
采纳率62.5%
2017-10-23 02:43 阅读 7.0k

ORA-00907:missing right parenthesis

20

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条回答 默认 最新

  • 已采纳
    u012047127 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
    
    点赞 2 评论 复制链接分享

相关推荐