完成发送代码,开始编写查询和清理已发送数据的代码。
This commit is contained in:
11
code/sql/触发器.txt
Normal file
11
code/sql/触发器.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
drop TRIGGER xyxinfo_update;
|
||||
CREATE TRIGGER xyxinfo_update BEFORE INSERT ON huixiabao.HmbXyxInfo FOR EACH ROW
|
||||
BEGIN
|
||||
delete from huixiabao.HmbXyxInfo_Update u where u.xyxNo = NEW.xyxNo;
|
||||
INSERT INTO huixiabao.HmbXyxInfo_Update ( xyxNo, update_time )
|
||||
VALUES
|
||||
(
|
||||
new.xyxNo,
|
||||
SYSDATE());
|
||||
|
||||
END
|
||||
Reference in New Issue
Block a user