Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How can you create memory table in oracle and fill it by data from select statement into oracle function?

user-image
Question added by mohamed azouz mohamed hessen , senior application developer ونائب رئيس النظم والمعلومات , بايونيرز لتداول الاوراق المالية
Date Posted: 2014/11/18
Muhammad Nadeem Khan
by Muhammad Nadeem Khan , Computer Operator Cum Office Assistant , Education Monitoring Authority

CREATE [TEMPORARY] TABLE [IF NOT EXISTS] tbl_name [(create_definition,...)] [table_options] [partition_options] select_statement

mohamed azouz mohamed hessen
by mohamed azouz mohamed hessen , senior application developer ونائب رئيس النظم والمعلومات , بايونيرز لتداول الاوراق المالية

temp table is real table and it will be drop from database when drop and the data will store in harddrive  but memory table not a real table it virtual table and it will store in the physical memory

 Temp table can be used for the current session or global. So that a multiple user session can utilize the results in the table

but the table memory can be used up to that program. (Stored procedure

memory table use varray Technic

 

Osama Ibrahim Abd El hamid Saada
by Osama Ibrahim Abd El hamid Saada , Senior Software Developer , The Consultants

using temp tables which will be deleted after closing the current session

el fekih maher
by el fekih maher , Developper Software/Web , Tunisie Technologies

You can create either with the wizard or with the SQL queries using the window sql commands:

CREATE TABLE table_name

(

   column1 datatype [NULL | NOT NULL]

   column2 datatype [NULL | NOT NULL]

   ...

);

Sarmad Jari
by Sarmad Jari , Senior Cloud Solution Architect , Microsoft

The short answer is No. You can't create temp table in memory.

Temporary table need to use temporary segments which need to be allocated from temporary tablespace.but if you are talking about a normal table (not a temp) then you cache it into memory!here is good read

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.