oracle级联更新
写了个触发器,有点问题,没明白 create or replace trigger person_trg after update on t_person for each row begin update t_debt set fname=:new.fname where fname=:old.fname; end; 警告:触发器被创建 有编译错误 SQL> show error 错误:TRIGGER BAHAMUT.PERSON_TRG: LINE/COL ERROR -------- ---------------------------------------- 2/42 PL/SQL: ORA-00904: "FNAME": 无效的标识符 2/1 PL/SQL: SQL Statement ignored SQL> select * from t_person 2 / FNAME FAGE FREMARK -------------------- ----------- -------------------- 花剑月 25 保费部 豆芽菜 22 业管部 流浪四海 22 团险部 有fname这个字段,没明白
用递归。 sql。 引用 create or replace trigger person_trg after update on t_person for each row begin update t_debt set fname=:new.fname where fname=:old.fname; end; t_debt 存在fname有啥用,你的new.fname,old.fname; 这里针对的是t_person 做的,检查下t_person 不存在fname这
相关问答:
安装了Oracle 10g,默认安装了orcl数据库,这个数据库能不能删除啊,还有我如果新建了其他数据库,怎么知道在web中登陆不同数据库的地址啊? 1 可以删除 2 在WEB地址栏中输入地址的时候指定新创建的数据库的IP ......
在执行包的时候引用oracle spatial空间函数出错,出错情况如下 Errors in file /user/oracle/app/oracle/admin/grid/udump/grid1_ora_143768.trc: ORA-29902: error in executing ODCIIndexStart() routine ORA-0 ......
在系统运行的时候总是有一块磁盘始终闪红灯,进入系统后 #topas查看总是有一块磁盘%BUSY为90%以上, 数据库版本:oracle 9.2.0.7 数据文件挂载的节点:/oradata/pcs/ 逻辑卷号lv04 #lslv -l lv04
......
eclipse 3.3启动web工程,要连接oracle9i数据库报 严重: Cannot create PoolableConnectionFactory (Listener refused the connection with the following error: ORA-12518, TNS:listener could not hand off cli ......
查看事务隔离级别的命令, MySQL使用的是select @@tx_isolation; 在Oracle中查看事务隔离级别的命令是哪个? SQL code: SELECT /*+ rule */ s.username,decode(l.type,'TM','TABLE LOCK','TX','ROW LOCK', ......