PL - SQL Interview Questions and Answers8
PL - SQL Interview Questions and Answers8
AS SELECT command
Explanation:
To copy only the structure, the WHERE clause of the SELECT command should contain a FALSE statement as in the following.
CREATE TABLE NEWTABLE AS SELECT * FROM EXISTINGTABLE WHERE 1=2;
If the WHERE condition is true, then all the rows or rows satisfying the condition will be copied to the new table.
TRUNCATE TABLE EMP; DELETE FROM EMP; Will the outputs of the above two commands differ?
Both will result in deleting all the rows in the table EMP..
What is the output of the following query SELECT TRUNC(1234.5678,-2) FROM DUAL;?
1200.
What is the parameter substitution symbol used with INSERT INTO command?
&
What is ROWID?
ROWID is a pseudo column attached to each row of a table. It is 18 characters long, blockno, rownumber are the components of
ROWID.