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 in flip flop?
Can we use ddl statements in stored procedure sql server?
How is data stored on a disk?
How do you modify a column in sql?
Can we use commit inside a trigger?
what is a primary key? : Sql dba
What is pl/sql table? Why is it used?
what are the advantages and disadvantages of cascading style sheets? : Sql dba
How to write html code in pl sql?
How subquery works in sql?
What is %type in sql?
what are dynamic queries in t-sql? : Transact sql
How do I truncate a sql log file?
What are character functions?
Is it possible to Restore a Dropped Table using Rollback Command in Oracle SQL Plus ?