ORACLE_多表关联_UPDATE_语句

时间:2015-12-06 07:08:36
【文件属性】:
文件名称:ORACLE_多表关联_UPDATE_语句
文件大小:34KB
文件格式:DOC
更新时间:2015-12-06 07:08:36
多表关联更新 把其它表作为条件和更新值的更新语句;例如: 两表(多表)关联update -- 仅在where字句中的连接 --这次提取的数据都是VIP,且包括新增的,所以顺便更新客户类别 update customers a -- 使用别名 set customer_type='01' --01 为vip,00为普通 where exists (select 1 from tmp_cust_city b where b.customer_id=a.customer_id )

网友评论