ORA-00907: 缺失右括号

/* Formatted on 2018/7/17 14:59:32 (QP5 v5.256.13226.35538) */
UPDATE yl_user
   SET YL_COMPANY_ID =
          (  SELECT ID
               FROM YL_REPAIR_SHOP
              WHERE     CONTRACT_MOBILE = '15178052588'
                    AND is_delete = 0
                    AND ROWNUM = 1
           ORDER BY LAST_UPDATE_TIME NULLS LAST
           ),
       YL_COMPANY =
          (  SELECT PLANT_NAME
               FROM YL_REPAIR_SHOP
              WHERE     CONTRACT_MOBILE = '15178052588'
                    AND is_delete = 0
                    AND ROWNUM = 1
           ORDER BY LAST_UPDATE_TIME NULLS LAST
           
           )
 WHERE YL_PHONE = '15178052588'

 

sql执行报错 order by去掉便可以;

你可能感兴趣的:(JAVA,Web,数据库)