WHAT IS THE SYNTAX TO CREATE A TEMP TABLE IN A PROCEDURE ? SQLPLUS?
-
HELLO, I NEED TO CREATE A TEMPORARY TABLE AND INSERT VALUES INTO IT FROM ANOTHER TABLE , IN A STORED PROCEDURE.
-
Answer:
There are lots of ideas at http://oracledba.bigresource.com/PL-SQL-create-temporary-table-using-execute-immediate-LTBJxU3k0.html#koJ28oBHT but will show you one idea below where you create the temporary table via the data and structure of an existing table: CREATE OR REPLACE PROCEDURE temptablecreate (new_table_name VARCHAR2, old_table_name VARCHAR2) IS BEGIN CREATE GLOBAL TEMPORARY table new_table_name as (Select * from old_table_name); END; /
TVFWOIO5RTTL4Y2P35XYJZMWR4 at Yahoo! Answers Visit the source
Related Q & A:
- How to add a new table to a data source?Best solution by technet.microsoft.com
- What is Hash Table, how to create a hash table?Best solution by Stack Overflow
- What do I need to transfer a tape format into a digital format?Best solution by wikihow.com
- What do I do to find a old article from a newspaper?Best solution by Yahoo! Answers
- What are some ideas to create a personal blog?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.