我想知道在powerbuilder ODBC下創建了一個資料庫,怎么創建這個資料庫中一個表的觸發器啊 脆求圖文決議(在哪寫SQL語言)
uj5u.com熱心網友回復:
String ls_sql_syntaxls_sql_syntax = "create or replace trigger tri_temp_test
on temp_test before insert for each row as
declare v_id int
select count(id) into:v_id_int from temp_test where id = new.id
if v_id_int = 0 then
insert into temp_table1 values(new.name,new.age)
end if
"
uj5u.com熱心網友回復:
我知道了 是sybase central 但為什么打不開啊轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/68285.html
標籤:數據庫相關
