截图如下:
SP_SET_PARA_VALUE(1,'MULTI_UPD_OPT_FLAG',2);
| 参数名 | 缺省值 | 属性 | 说明 |
|---|---|---|---|
| MULTI_UPD_OPT_FLAG | 1 | 动态,会话级 | 0:按照语句改写方式实现多列更新;1:利用多列 SPL 功能实现多列更新;2:允许对多表连接视图进行更新;4:相关查询语句利用多列 SPL 功能实现多列更新。支持使用上述有效值的组合值,如 3 表示同时进行 1、2 的优化 |
create table ttest1(id int,name char(10));
alter table ttest1 add primary key(id);
insert into ttest1 values(1,'');
create table ttest2(nid int,nname char(10));
alter table ttest2 add primary key(nid);
insert into ttest2 values(1,'t2-1');
create view tview(vid,vname) as select id,name from ttest1,ttest2 where ttest1.id=ttest2.nid;
select * from tview;
update tview set vname='uvtest0' where vid=1;
insert into tview values(2,'t1-1');
delete tview where vid=1;
文章
阅读量
获赞
