CREATE PROCEDURE my_proc AS BEGIN EXECUTE IMMEDIATE 'CREATE TABLE foo (bar NUMER)'; END; /However, it is almost always poor design to run DDL inside a stored procedure. Typically, we do no let our users create tables on the fly by running a stored proc in their application code.
Dig deeper on Oracle database backup and recovery
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.