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;
uj5u.com熱心網友回復:
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;這是一句什么鬼,你想做什么,想實作什么
uj5u.com熱心網友回復:
pname 這是變數么? 變數需要定義,不爽變數就不能用:=這種形式into也可以給變數賦值,不過你into前面的應該只有一個值吧,就只能賦值給一個變數
其他的反正這陳述句完全看不懂
uj5u.com熱心網友回復:
說一下你的意圖吧,從這個陳述句上看不出來你要干什么。轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/102174.html
標籤:基礎和管理
