The EMP table contains columns to hold the birthdate and the hire date of theemployees. Both of these columns are defined with date as their data type. You wantto insert a row with the details of the employee Smith who was born in 1944 and hiredin 2004.
Which statement will ensure that values are inserted into the table in the correctcentury?
A. INSERT INTO EMP(empno,ename,birthdate,hiredate)
VALUES(EMPNO_SEQ.NEXTVAL, ‘Smith’, ‘12-dec-44’,
‘10-jun-04’ )
B. INSERT INTO EMP(empno,ename,birthdate,hiredate)
VALUES(EMPNO_SEQ.NEXTVAL, ‘Smith’,
TO_DATE(‘12-dec-44’, ‘DD-MON-RR’),
TO_DATE(‘10-jun-04’, ‘DD-MON-RR’));
C. INSERT INTO EMP(empno,ename,birthdate,hiredate)
VALUES(EMPNO_SEQ.NEXTVAL, ‘Smith’,
TO_DATE(‘12-dec-44’, ‘DD-MON-YY’),
TO_DATE(‘10-jun-04’, ‘DD-MON-YY’));
D. INSERT INTO EMP(empno,ename,birthdate,hiredate)
VALUES(EMPNO_SEQ.NEXTVAL, ‘Smith’,
TO_DATE(‘12-dec-44’, ‘DD-MON-YY’),
TO_DATE(‘10-jun-04’, ‘DD-MON-YY’));
请问有正确答案吗?
好像没有正确答案
|