創建/替換觸發我用松鼠3.2.0 當我試圖取代這一觸發:在松鼠
CREATE OR REPLACE TRIGGER crw_ins_trig
BEFORE INSERT OR UPDATE ON crew
FOR EACH ROW
DECLARE
BEGIN
if (:new.crw_id is null) then
select crw_id_seq.nextval
into :new.crw_id
from dual;
end if;
END;
/
我得到的消息「請輸入參數值價值。‘新’」
當我點擊確定結果的消息是:
Warning: Warning: execution completed with warning
SQLState: null
ErrorCode: 17110
Position: 27
Query 1 of 1, Rows read: 0, Elapsed time (seconds) - Total: 0.023, SQL query: 0.023, Building output: 0
在我的應用程序我得到一個錯誤"ORA-04098: trigger 'CRW_INS_TRIG' is invalid and failed re-validation"
這與松鼠有關嗎?如果是這樣,我該如何解決這個問題?
的問題可能是宣佈並開始間的空行。也許Squirrel將前四行解釋爲CREATE TRIGGER命令(導致無效觸發),然後嘗試將BEGIN-END塊作爲匿名塊執行。 – 2010-12-07 07:05:04