请教:trigger 里得不到blob值是怎么回事儿?# Database - 数据库
c*c
1 楼
我有一table1,不知为什前面的人把一cloumn设成blob。我有新table叫problem_
history_summary,想得到table1的blob。
我运行
update problem_history_summary set (problem_history, problem_blob,
datestamp,type)= (select UTL_RAW.CAST_TO_VARCHAR2( t.description ), t.
description ,t.datestamp,t.type from table1 t where t.thenumber = '
001A1965');
没有问题。但我设了个trigger,每当table1里insert了new row,我就运行以上的sql
,当然稍微变下
update problem_history_summary set (problem_history, problem_blob,
datestamp,type)= (UTL_RAW.CAST_TO_VARCHAR2( :new.description ), :ne
history_summary,想得到table1的blob。
我运行
update problem_history_summary set (problem_history, problem_blob,
datestamp,type)= (select UTL_RAW.CAST_TO_VARCHAR2( t.description ), t.
description ,t.datestamp,t.type from table1 t where t.thenumber = '
001A1965');
没有问题。但我设了个trigger,每当table1里insert了new row,我就运行以上的sql
,当然稍微变下
update problem_history_summary set (problem_history, problem_blob,
datestamp,type)= (UTL_RAW.CAST_TO_VARCHAR2( :new.description ), :ne