
Oracle
守望者_xwm
和大家交流是一种乐趣
展开
-
oracle之truncate table 的drop storage和reuse storage
首先创建两个测试表test,test1两个表数据放在data_tablespace,索引放在index_tablespace表空间下(测试证明和表空间没有关系)如果使用下面两个语句删除两个表中的数据truncate table test drop storage;truncate table test1 reuse storage;得到的结果将会是: test表中的data原创 2016-10-19 10:40:54 · 14098 阅读 · 1 评论 -
oracle 中游标和存储过程的使用
创建一个表create table test4 (id int,name varchar2(20),cnum number);在sqlplus下写一个游标的使用declarecursor curr is select cnum from test4 where cnumcur curr%rowtype;beginopen curr;LOOPfetch curr原创 2016-11-07 09:32:48 · 350 阅读 · 0 评论