摘要:
带any嵌套查询 select emp.empno,emp.ename,emp.sal from scott.emp where sal>any(select sal from scott.emp where job='manager'); 等价于 select sal from scott.emp where job='manager' 结果为 sal:2975 2850 245... 阅读全文
摘要:
SELECT case when not exists(SELECT Cons_Date FROM sbcHisMaster WHERE HisTypeNO='L' AND ProductSN ='M7D2028') THEN (SELECT Cons_Date FROM sbcHisMaster WHERE HisTypeNO='Y' AND ProductSN ='... 阅读全文