Can DDL Statements Be Used in PL/SQL?
Submitted by: AdministratorNo, you can not run any DDL statements is PL/SQL directly. If you try to use the DROP TABLE statement inside PL/SQL, you will get a compilation error as shown below:
(Connect to XE with SQL*Plus)
BEGIN
DROP TABLE student; -- compilation error
END;
/
Submitted by: Administrator
(Connect to XE with SQL*Plus)
BEGIN
DROP TABLE student; -- compilation error
END;
/
Submitted by: Administrator
Read Online Oracle Database Job Interview Questions And Answers
Top Oracle Database Questions
☺ | How To Recover a Dropped Table in Oracle? |
☺ | How Much Memory Your 10g XE Server Is Using? |
☺ | What Is Input Buffer in SQL*Plus? |
☺ | What Happens to Indexes If You Drop a Table? |
☺ | How To Turn On or Off Recycle Bin for the Session? |
Top DB Oracle Categories
☺ | Oracle PL-SQL Interview Questions. |
☺ | Oracle DBA Interview Questions. |
☺ | Oracle D2K Interview Questions. |
☺ | OCI Interview Questions. |
☺ | Oracle RMAN Interview Questions. |