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 is trigger and types?
What is nested table in pl sql?
how to start mysql server? : Sql dba
What is the use of index in sql?
What is the use of stored procedures?
Define sql delete statement.
What are the two types of cursors in pl sql?
What is a data definition language?
What are its different types of dbms?
How many sql databases can you have on one server?
What is exception? What are the types of exceptions?
what is a record in a database ? : Sql dba
Does pl sql work in mysql?
What is mutating sql table?
what is the difference between nested subquery and correlated subquery?