视图:
create or replace view testa_b_view(aid,aname,bid,bage)//列名
as select a.id,a.name,b.id,b.age
from testA a,testB b
where a.id=b.aid
select * from testa_b_view;
过程:
create or replace procedure test(x in number)
is
y number(4,2);
begin
if x >0 then
begin
y:= 0 - x;
end;
end if;
if x = 0 then
begin
y: = 1;
end;
end if;
end test;
触发器:
create trigger auth_secure before insert or update or delete//对整表更新前触发
on 表名
begin
if(to_char(sysdate,'DY')='SUN'
RAISE_APPLICATION_ERROR(-20600,'不能在周末修改表auths');
endif;
end
1350

被折叠的 条评论
为什么被折叠?



