Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creation of Oracle temporary table with same table structure to that of a existing table

How to create a global temporary table with same table structure to that of a existing table?

I know this concept is available in SQL server like "select * into #temp123 from abc". But I want to perform the same in Oracle.

like image 676
Sangram_2020 Avatar asked Dec 31 '25 07:12

Sangram_2020


1 Answers

Create global temporary table mytemp 
as 
select * from myTable
where 1=2
like image 172
BobC Avatar answered Jan 03 '26 12:01

BobC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!