update 表A a
set
a.time=(select max(b.time) from 表B b where a.id=b.id)
where
exists(select 1 from 表B b where a.id=b.id)
set
a.time=(select max(b.time) from 表B b where a.id=b.id)
where
exists(select 1 from 表B b where a.id=b.id)
解决方案 »
- oracle插入语句错误
- 关于分区的小问题
- SCOTT用户下EMP表DEPTNO COL后出现###
- ORACEL sql语句实现根据前条记录的两个字段与下条记录的两个字段值相同时,上条的某个字段值为下条记录的某个字段值。
- 如何得到一个动态sql执行后的数据
- 菜鸟问题:exp 出来的文件不能大于2G吗,还是有参数可设,希大虾指点
- 一个触发器的问题!
- 如何从数据表中SELECT出字段为空,但不为.NULL的数据??急急急,等。。。
- update GW_DocTrack set dealman=dealman+'1111' 请教
- 怎样调整blob字段的容量?
- 请问:在oracle8下可以执行的sql语句,在oracle9下为什么不可以执行
- Oracle有没有命令可以编译存储过程?
楼上的那样可以吗?