2、我们建立TABLE时用create table tabletemp as select * from table 1 order by field1 这个tabletemp 查询表是不是把数据有重新存储了一遍,或则还是把表TABLE1中的数据重新排序后再显示给用户看?对不起,我写错了,第二个是查询表!
create TABLE table_name as select * from teable_name_other where ... 肯定存储数据create or replace VIEW view_name as select coul,.. from table_name where ... 肯定不存储数据
1、create view viewtemp as select * from table 1 order by field1 不存储数据,数据重新排序后再显示给用户看2、create table tabletemp as select * from table 1 order by field1 这不是建view,而是建Table,要重新存储一遍。
这个tabletemp 查询表是不是把数据有重新存储了一遍,或则还是把表TABLE1中的数据重新排序后再显示给用户看?对不起,我写错了,第二个是查询表!
2.是把表TABLE1中的数据重新排序后存储了
2、你这句语句就是生成一个TABLE,其实是由2部分组成的. 首先按照后面SELECT语句返回的结构生成一个新表, 然后再往这个新表里插入所有SQL返回的纪录.
select * from teable_name_other where ...
肯定存储数据create or replace VIEW view_name as
select coul,.. from table_name where ...
肯定不存储数据
不存储数据,数据重新排序后再显示给用户看2、create table tabletemp as select * from table 1 order by field1
这不是建view,而是建Table,要重新存储一遍。
具体的就是: KingSunSha(弱水三千) 所说的.