文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > oracle中update语句和关联
侵权投诉

oracle中update语句和关联

oracle中update语句和关联

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

)

3) 两表(多表)关联 update -- 被修改值由另一个表运算而来

SQL 代码

update customers a -- 使用别名

set city_name=(select b.city_name from tmp_cust_city b where b.customer_id =a.customer_id)

where exists (select 1

from tmp_cust_city b

where b.customer_id=a.customer_id

)

-- update 超过 2 个值

update customers a -- 使用别名

上一页第3页

你可能喜欢

  • update语句
  • SQL语句教程
  • Excel使用技巧大全(超
  • 使用技巧
  • oracle总结
  • Word使用技巧大全

热门文档

相关文档

  • ORACLE_多表关联_UPDATE_语句

    5) 关联 update 的一个特例以及性能再探讨 在 oracle 的 update 语句语法中,除了可以 update 表之外,也可以是视图, 所以有以下 1 个特例: update (select a...

  • ORACLE 多表关联 UPDATE 语句

    5) 关联 update 的一个特例以及性能再探讨 在 oracle 的 update 语句语法中,除了可以 update 表之外,也可以是视图, 所以有以下 1 个特例: update (select a...

  • 多表关联的update语句

    5) 关联 update 的一个特例以及性能再探讨 在 oracle 的 update 语句语法中,除了可以 update 表之外,也可以是视图,所以有以下 1 个特例: update (select a....

  • ORACLE 多表关联 UPDATE 语句

    end; 5) 关联 update 的一个特例以及性能再探讨 在 oracle 的 update 语句语法中,除了可以 update 表之外,也可以是视图,所以有以下 1 个 特例: SQL 代码 1...

  • oracle的update语句研究

    二、 提高 oracle 更新效率的各种解决方案 1. 标准 update 语法 当你需要更新的表是单个或者被更新的字段不需要关联其他表带过来,则最后 选择标准的 update 语句,...

  • ORACLE 多表关联 UPDATE 语句

    ORACLE 多表关联 UPDATE 语句_计算机软件及应用_IT/计算机_专业资料。... oracle表相关查询语句 1页 免费 Oracle查询用户所有表的... 2页 1下载券...

  • oracle update语句的几点写法

    oracle update语句的几点写法_计算机软件及应用_IT/计算机_专业资料。oracle update语句的几点写法 update两表关联的写法包括字查询 update t2 set parentid=(...

  • Oracle -Update 多表关联

    Oracle -Update 多表关联_IT/计算机_专业资料。一条 Update 更新语句是不能更新多张表的,除非使用触发器隐含更新。而表的 更新操作中,在很多情况下需要在表达式...

  • ORACLE__UPDATE_语句

    5) 关联 update 的一个特例以及性能再探讨 在 oracle 的 update 语句语法中,除了可以 update 表之外,也可以是视图, 所以有以下 1 个特例: update (select a...

  • ORACLE_UPDATE_语句语法 性能分析看法

    5) 关联update的一个特例及性能再探讨 在oracle的update语句语法中,除了能update表之外,也能是视图,所以有以下1个特例: update (select a.city_name,b.city_...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email