What is the result of the fallowing code? Piece Insert into table A value(a1): CREATE TABLE B AS SELECT * FROM A; ROLLBACK;
A. Table B gets created with the row inserted in the first statement. B. Table B is not created C. Table B gets created, but no row gets inserted into Table A D. Rollback throws up an exception.
A> Table B gets created with the row inserted in the first statement. Because all DDL statements are AUTO COMMIT statements and as a create command (a DDL) is issued it is automatically commited and there will not be any effect of rollback....
Vikas Baidya
Above answer was rated as good by the following members: nishantg29
RE: What is the result of the fallowing code?Piec...
A> Table B gets created with the row inserted in the first statement. Because all DDL statements are AUTO COMMIT statements and as a create command (a DDL) is issued it is automatically commited and there will not be any effect of rollback....
RE: What is the result of the fallowing code?Piec...
The answer here is quite simple...
first the insert statement will execute and after that a table b will get created with the data stored in the table a.
There will be no effect of the rollback. the data will get saved in the table a because the DDL commands (create alter etc) fires the commit automatically.