根据emp表拼出
select ename,job,sal,hiredate from emp where hiredate=to_date('1980/12/17','yyyy/mm/dd');
语句如下
SQL> select 'select ename,job,sal,hiredate from emp where hiredate=to_date('''||to_char(hiredate,'yyyy/mm/dd')||''',''yyyy/mm/dd'');' from emp;
'SELECTENAME,JOB,SAL,HIREDATEFROMEMPWHEREHIREDATE=TO_DATE('''||TO_CHAR(HIREDATE,'YYYY/MM/
-----------------------------------------------------------------------------------------
select ename,job,sal,hiredate from emp where hiredate=to_date('1980/12/17','yyyy/mm/dd');
select ename,job,sal,hiredate from emp where hiredate=to_date('1981/02/20','yyyy/mm/dd');
select ename,job,sal,hiredate from emp where hiredate=to_date('1981/02/22','yyyy/mm/dd');
select ename,job,sal,hiredate from emp where hiredate=to_date('1981/04/02','yyyy/mm/dd');
select ename,job,sal,hiredate from emp where hiredate=to_date('1981/09/28','yyyy/mm/dd');
select ename,job,sal,hiredate from emp where hiredate=to_date('1981/05/01','yyyy/mm/dd');
select ename,job,sal,hiredate from emp where hiredate=to_date('1981/06/09','yyyy/mm/dd');
select ename,job,sal,hiredate from emp where hiredate=to_date('1982/12/09','yyyy/mm/dd');
select ename,job,sal,hiredate from emp where hiredate=to_date('1981/11/17','yyyy/mm/dd');
select ename,job,sal,hiredate from emp where hiredate=to_date('1981/09/08','yyyy/mm/dd');
select ename,job,sal,hiredate from emp where hiredate=to_date('1983/01/12','yyyy/mm/dd');
select ename,job,sal,hiredate from emp where hiredate=to_date('1981/12/03','yyyy/mm/dd');
select ename,job,sal,hiredate from emp where hiredate=to_date('1981/12/03','yyyy/mm/dd');
select ename,job,sal,hiredate from emp where hiredate=to_date('1982/01/23','yyyy/mm/dd');
14 rows selected.