Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

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

user-image
Question ajoutée par mohamed azouz mohamed hessen , senior application developer ونائب رئيس النظم والمعلومات , بايونيرز لتداول الاوراق المالية
Date de publication: 2014/11/18
Muhammad Nadeem Khan
par 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
par 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
par 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
par 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
par 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