how to create table with in the procedure or function?

Answer Posted / k.l.tharangini

create table using procedure

create procedure test as
begin
EXECUTE IMMEDIATE
'CREATE TABLE emp(empno VARCHAR(10),JOB VARCHAR(10),SAL
NUMBER(10))';
end;

Is This Answer Correct ?    43 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where not exists in sql?

504


how do you know the version of your mysql server? : Sql dba

508


Why do we use function in pl sql?

561


what is log shipping? : Sql dba

615


What is the most restrictive isolation level? : Transact sql

563






Is sql pronounced sequel or sql?

749


what is an execution plan? When would you use it? How would you view the execution plan? : Sql dba

554


What are the different ways to optimize a sql query?

492


how can you see all indexes defined for a table? : Sql dba

541


Is sql a backend?

551


What are the dml statements?

690


Show how functions and procedures are called in a pl/sql block.

588


What are sql functions? Describe the different types of sql functions?

563


Why trigger is used in sql?

536


What is an oracle stored procedure?

595