【DML、DDL、DCL区别】
DML(data manipulation language)select、insert、update、delete等
DDL(data definition language)create、drop、alter等
DCL(data control language)grant、deny、revoke等
【Union all & Union 区别】
Union all 数据可以重复。
【model 用法】
MODEL
RETURN UPDATED ROWS
PARTITION BY (country)
DIMENSION BY (prod, year)
MEASURES (sale sales)
RULES ()
http://www.zhujiangroad.com/html/soft/s8300.html
【dense_rank() 和 rank() 区别】
dense_rank() 是连续排序,如果出现多个第2名后面仍然是第3名。
【删除主键及索引】
alter table FP_INDEX_INFO drop constraint FP_INDEX_INFO_PK;
【循环插入】
declare
i number;
begin
i:=2;
for i in 2..9 loop
insert into AS_SAVE_SEARCHS values(i,i,i);
end loop;
end;
commit;
【移动table到另一个tablespace】
alter table tableName move tablespace spaceName;
rebuild table tableName indexes;
【能够select却在toad中找不到table】
table 的owner可能不是当前用户;