使用命令创建了一张表temp
create table temp as select * from dual;
查询
select * from temp;
原因:
create table temp as select * from dual;这个命令只是依照dual表的表结构创建的temp表,实际并没有数据
应该再使用
insert into temp select * from dual;
插入数据就可以了
使用命令创建了一张表temp
create table temp as select * from dual;
查询
select * from temp;
原因:
create table temp as select * from dual;这个命令只是依照dual表的表结构创建的temp表,实际并没有数据
应该再使用
insert into temp select * from dual;
插入数据就可以了