如何达到这个要求:
两个查询:
用户1:select f001,f002 from Table1
用户2:select f001,f002,f003 from Table2
两个记录集写入临时表 TempTable
这样两个记录集的字段就会不一样。
在SQL Server 中,用select into #TempTable 就可以了。在Oracle中如何实现?
两个查询:
用户1:select f001,f002 from Table1
用户2:select f001,f002,f003 from Table2
两个记录集写入临时表 TempTable
这样两个记录集的字段就会不一样。
在SQL Server 中,用select into #TempTable 就可以了。在Oracle中如何实现?
create global temporary table TempTable
on commit preserve rows
as
select f001,f002 from Table1;truncate table TempTable;
drop table TempTable;create global temporary table TempTable
on commit preserve rows
as
select select f001,f002,f003 from Table2;
create global temporary table TempTable1
on commit preserve rows
as
select f001,f002 from Table1;
create global temporary table TempTable2
on commit preserve rows
as
select f001,f002,f003 from Table2;建两个临时表,分开使用