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

what is uncommittable transactions? : Transact sql

749


How do rank () and dense_rank () differ?

716


How can I make sql query run faster?

750


What is spool?

784


How much ram can sql express use?

698






What are inner outer left and right joins in sql?

724


what are all the common sql function? : Sql dba

776


How many joins in sql?

734


What is sql exception?

704


what are the maximum number of rows that can be constructed by inserting rows directly in value list? : Transact sql

700


Why stored procedure is faster than query?

677


what is self-join? : Sql dba

754


Why use triggers in sql?

700


Write a sql query to convert all character to uppercase after hypen.

1165


What is a relationship and what are they?

779