create trigger preson_insert_beffor
before insert on preson
for each row
declare
begin
select 'p'||trim(to_char(preson_pid.nextval,'999'))into pname:=:new.pname and psex:=:new.psex and tid:=:new.tid and age:=:new.age from dual;
end;
before insert on preson
for each row
declare
begin
select 'p'||trim(to_char(preson_pid.nextval,'999'))into pname:=:new.pname and psex:=:new.psex and tid:=:new.tid and age:=:new.age from dual;
end;
解决方案 »
- 关于临时表
- oracle 去ID最大的那条记录
- 关于oracle中表空间的映射问题
- 求个SQL语句的写法
- 如何用游标加存储过程将两个结构相同数据不同的表数据进行互换,如A,B两表,高手给个例子
- oracle中有个列的是这样描述的: column1 (7,2),怎么解释?
- 使用exp导出数据库的问题!
- 在PL/SQL Developer的Command Windows中创建临时表出错,请大家指教。
- oracle9i安装问题
- 急,急 oracle写过程时查询视图,报表或视图不存在
- 通过覆盖oardata来恢复数据库数据,出现oar-01033问题
- oracle sql语句 将某死为零的更新成另外一列的值,不为0的有值的不更新。
这是一句什么鬼,你想做什么,想实现什么