//第十条到二十条的记录
select * from tablename where rownum<20 minus select * from tablename where rownum<10
-----------------------------------------------------------------------------------------------------------------
//触发器小例子之一
Create or replace trigger biud_pt_mb_zd
before insert or update or delete
on TABLENAME1
Begin
insert into TABLENAME2(id) values(value);
end;
创建触发器
当修改tablename1表时候,对tablename2表进行操作。
-----------------------------------------------------------------------------------------------------------------
//存储过程小例子之一
CREATE OR REPLACE procedure procedureName
(a in varchar2)
As b Varchar2(20);
begin
b :=a;
Insert Into tablename(id) Values(b);
end procedureName;
exec procedureName('cscs')
commit
通过pl/sql简单的插入一条数据,其实可以直接把b换成a的。