问题描述
two select seperately works, but union them doesnot workselect TO_CHAR(timeentry,'YYYY-MM-DD') as mcdatefield from morningcheckreport group by TO_CHAR(timeentry,'YYYY-MM-DD') order by mcdatefieldunion select TO_CHAR(timeentry,'YYYY-MM-DD') as acdatefield from alertcheckreport group by TO_CHAR(timeentry,'YYYY-MM-DD') order by acdatefield 问题补充:zzy198772 写道
解决方案
第一个不能有 order by .
解决方案二:
查询结果没出来之前不能有order by 两个链接链接起来 观察结果什么时候出来的 再在后面加排序才行的.
时间: 2024-10-21 14:54:55