Insert into temporary table
select t.*
into #temp
from
(
select 'a' as a
union all
select 'b' as a
) as t
select * from #temp
drop table #temp
i usually do this on SQL server wherein i create a temporary table.
the syntax "into #temp" creates a non-physical table on the DB, while "into temp" will create a physical table on the DB.
My problem in MySQL is to convert the above MSSQL statement. What i want is to creata is a temporary table that is not physically created on the DB. Do we have this feature in MySQL?
Subject
Written By
Posted
Insert into temporary table
March 16, 2006 12:14AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.