我做错了什么?已下订单的订单
SQL> select ename, job, oder by (ascending order)hiredate from emp where hiredate between '20-FEB-81' AND '01-MAY-81';
select ename, job, oder by (ascending order)hiredate from emp where hiredate between '20-FEB-81' AND '01-MAY-81'
*
ERROR at line 1:
ORA-00923: FROM keyword not found where expected
SQL>
表
SQL> select ename, job, hiredate from emp where hiredate between '20-FEB-81' AND '01 MAY-81';
ENAME JOB HIREDATE
---------- --------- ---------
BLAKE MANAGER 01-MAY-81
JONES MANAGER 02-APR-81
ALLEN SALESMAN 20-FEB-81
WARD SALESMAN 22-FEB-81
SQL>
见你最后一个问题http://stackoverflow.com/questions/7373117/asending-order-for-hiredate和阅读sql语法并注意命令的顺序 – Mark
您提出的问题太多,这些问题都是简单的语法错误。 Oracle文档是全面的,在线和免费的。在发布更多此类问题之前,请阅读它。在此处查找:http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/toc.htm – APC