oracle 为了找到以下问题的答案[已关闭]

xurqigkl  于 2023-03-01  发布在  Oracle
关注(0)|答案(1)|浏览(125)

这个问题是由打字错误或无法再重现的问题引起的。虽然类似的问题在这里可能是on-topic,但这个问题的解决方式不太可能帮助未来的读者。
6天前关闭。
Improve this question

select pq CLIENT_NM, pq.SENDER NM, count(pq.ARCHIVE ID) as CertCount, to_char(pq.SUBMIT_DT, 'yyyy.mm.dd') as SubmitDate,to_char(pq.PROCESS_DT,yyyy.mm.dd') as ProcessDate,pq.STATUS 
    from wincert owner. PRINT_QUEUE pq
    where to_char(PROCESS_DT,'YYYY.MM.DD') = to_char(sysdate -1, YYYY.MM.DD'*) 
    group by pq.CLIENT_NM, pq.SENDER_NM, to_char(pq SUBMIT_DT, yyyy.mm.dd'), to_char(pq.PROCESS_DT;yyyy.mm.dd'"), pq.STATUS 
    Order by 1,2

部分识别的规则(语法错误)

vfh0ocws

vfh0ocws1#

您缺少许多单引号和其他随机*"字符,并且FROM子句wincert owner. PRINT_QUEUE pq无效(您是指_而不是``吗?):

select pq CLIENT_NM,
       pq.SENDER NM,
       count(pq.ARCHIVE ID) as CertCount,
       to_char(pq.SUBMIT_DT, 'yyyy.mm.dd') as SubmitDate,
       to_char(pq.PROCESS_DT, 'yyyy.mm.dd') as ProcessDate,
       pq.STATUS 
from   wincert_owner.PRINT_QUEUE pq
where  to_char(pq.PROCESS_DT, 'yyyy.mm.dd') = to_char(SYSDATE - 1, 'yyyy.mm.dd')
group by
       pq.CLIENT_NM,
       pq.SENDER_NM,
       to_char(pq.SUBMIT_DT, 'yyyy.mm.dd'),
       to_char(pq.PROCESS_DT, 'yyyy.mm.dd'),
       pq.STATUS 
Order by 1,2;

相关问题