YC3354 2017-10-23 02:43 采纳率: 62.5%
浏览 7674
已采纳

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
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Stata 面板数据模型选择
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样
  • ¥15 java的GUI的运用