oracle execute immediate
来源:百度知道 编辑:UC知道 时间:2024/05/24 08:05:37
execute immediate 'update :1 set recall_flag=''n'' where sno_number=:2 and phone_number:=3 and recall_flag is null'
using rep_table_name,row_record.SNO_NUMBER,row_record.PHONE_NUMBER;
commit;
我是想把这个流水号和电话号码的recall_flag为空的这条记录更改为
recall_flag='n' 表名是动态的
语句应该怎么写,我这样写出错
谢谢
execute immediate 支不支持动态的表名呢????
using rep_table_name,row_record.SNO_NUMBER,row_record.PHONE_NUMBER;
commit;
我是想把这个流水号和电话号码的recall_flag为空的这条记录更改为
recall_flag='n' 表名是动态的
语句应该怎么写,我这样写出错
谢谢
execute immediate 支不支持动态的表名呢????
execute immediate 'update '||rep_table_name||' set recall_flag=''n'' where sno_number=:1 and phone_number:=2 and recall_flag is null'
Using row_record.SNO_NUMBER,row_record.PHONE_NUMBER;
commit;
应该这样的,以上,希望对你有所帮助!