做一个表的insert的trigger,目的是只修改插入行的字段. CREATE OR REPLACE TRIGGER TR_RME_SLOT BEFORE INSERT ON RME_SLOT FOR EACH ROW BEGIN IF (:NEW.POSITION >= 0 AND :NEW.POSITION <10) THEN :NEW.SLOT_NAME := '0'||TO_CHAR(:NEW.POSITION); ELSE :NEW.SLOT_NAME := TO_CHAR(:NE…
oracle中 connect by prior 递归算法 -- 理解 http://blog.163.com/xxciof/blog/static/7978132720095193113752/ oracle中 connect by prior 递归算法 Oracle中start with...connect by prior子句用法 connect by 是结构化查询中用到的,其基本语法是: select ... from tablename start with 条件1 connect…
oracle触发器中增删改查本表 (1)只有before insert触发器中才可以查询或更新本表 create or replace trigger tri_test_ins before insert on test for each row declare v_cnt integer; begin select count(*) into v_cnt from test; dbms_output.put_line('test count:'||to_char(v_cnt)); u…