下面这句sql语句提示缺失右括号,请大家帮下忙
selectissue_id,proposer_name,issue_date,station,line,model,badness,phenomenon,estimat...
select issue_id,proposer_name,issue_date,station,line,model,badness,phenomenon,estimated,PRONCIPAL_NAME,CLOSURE,CLOSURE_TIME,UPDATE_TIME from cus_mis_issue_head where not exists (select issue_id,proposer_name,issue_date,station,line,model,badness,phenomenon,estimated,PRONCIPAL_NAME,CLOSURE,CLOSURE_TIME,UPDATE_TIME from cus_mis_issue_head where rownum <=5 order by ) and rownum <=5 order by closure asc;
数遍问一句,Oracle的not exists用对了吗?
最后行,前面的order by 应该是 order by closure asc) 展开
数遍问一句,Oracle的not exists用对了吗?
最后行,前面的order by 应该是 order by closure asc) 展开
2个回答
展开全部
order by ) 中的order by 要余带删掉。竖此芦扒瞎
select issue_id,proposer_name,issue_date,station,line,model,badness,phenomenon,estimated,PRONCIPAL_NAME,CLOSURE,CLOSURE_TIME,UPDATE_TIME from cus_mis_issue_head where not exists (select issue_id,proposer_name,issue_date,station,line,model,badness,phenomenon,estimated,PRONCIPAL_NAME,CLOSURE,CLOSURE_TIME,UPDATE_TIME from cus_mis_issue_head where rownum <=5 ) and rownum <=5 order by closure asc;
select issue_id,proposer_name,issue_date,station,line,model,badness,phenomenon,estimated,PRONCIPAL_NAME,CLOSURE,CLOSURE_TIME,UPDATE_TIME from cus_mis_issue_head where not exists (select issue_id,proposer_name,issue_date,station,line,model,badness,phenomenon,estimated,PRONCIPAL_NAME,CLOSURE,CLOSURE_TIME,UPDATE_TIME from cus_mis_issue_head where rownum <=5 ) and rownum <=5 order by closure asc;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询