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 an escape character in sql?
What is localdb mssqllocaldb?
Is it possible to pass parameters to triggers?
How do I view a sql database?
what is not null constraint? : Sql dba
How to get list of all tables from a database?
How do I view a view in sql?
What is posting?
how to drop an existing view in mysql? : Sql dba
What is a dynamic query?
What is a memo field?
What is sap sql?
What are sql functions? Describe in brief different types of sql functions?
What view means?
what are the maximum number of rows that can be constructed by inserting rows directly in value list? : Transact sql