how to create table with in the procedure or function?
Answer Posted / vipin kumar
If we need to create a table in the stored procedure then we need to use the execute immediate and then the string ' create table emp(name varcha2(1000))'
Other then this if we need to create a table which will just store the records (collections) then it will be like
--declare a row first
type employee is record
(Emp_name varchar2(100),
emp_id number);
--
-- Create a table now
--
type tab_employee is table of employee
index by binary_integer;
| Is This Answer Correct ? | 4 Yes | 5 No |
Post New Answer View All Answers
What are the set operators in sql?
What is difference between group by and partition by?
How many sql commands are there?
what is clause? : Sql dba
What is the difference between view and stored procedure?
What is the basic structure of an sql?
Which certification is best for sql?
How to rename a table?
which tcp/ip port does sql server run on? : Sql dba
How do you use a while loop in pl sql?
What is the meaning of disabling a trigger?
What is trigger explain with example?
Is sql low level language?
What is the sql case statement?
What are aggregate functions in sql?