Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

temporary tables in oracle

Status
Not open for further replies.

cba321

Programmer
May 1, 2003
9
0
0
US
Dear All,

I have created a package having a stored procedure. I wanted to create a temporary table inside the stored procedure.

Can anyone of you help me at the earliest.

Regards,
CBA321
 
if you are asking for the syntax:

create global temporary table test1
( c1 number, c2 number)<on commit delete rows>;

the on commit parameter is optional and can have one of these values : delete rows(this is default) /preserve rows
 
If you mean DATABASE table, you need DYNAMIC SQL (e.g. EXECUTE IMMEDIATE). You may also define some package-wide collection type.

Regards, Dima
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top