zoukankan
html css js c++ java
sql:关于Oracle的update from语句
还是带有SQL Server的习惯,在Oracle中经常使用update from结构,事实上Oracle中是不存在from语句的。
Code
1
update
hek_om_pop_lines_all
2
set
quantity_2
=
quantity_1
3
from
hek_om_pop_lines_all l, hek_om_pop_headers_all h, hek_om_user_ctl_v ctl
4
where
l.header_id
=
h.header_id
5
and
h.sold_to_org_id
=
ctl.customer_id
6
and
h.flow_status
=
'
enter
'
7
and
to_char(h.creation_date,
'
yyyymmdd
'
)
>=
&
p_start_date
8
and
to_char(h.creation_date,
'
yyyymmdd
'
)
<=
&
p_end_date
9
and
ctl.
user_id
=
1115
--
apps.fnd_profile.VALUE('user_id')
10
and
application
=
'
POP
'
;
error:ORA-00933:SQL Command not properly ended
Code
1
update
hek_om_pop_lines_all
2
set
quantity_2
=
quantity_1
3
where
header_id
in
(
select
h.header_id
4
from
hek_om_pop_headers_all h, hek_om_user_ctl_v ctl
5
where
h.flow_status
=
'
enter
'
6
and
to_char(h.creation_date,
'
yyyymmdd
'
)
>=
&
p_start_date
7
and
to_char(h.creation_date,
'
yyyymmdd
'
)
<=
&
p_end_date
8
and
ctl.
user_id
=
1115
--
apps.fnd_profile.VALUE('user_id')
9
and
application
=
'
POP
'
10
and
h.sold_to_org_id
=
ctl.customer_id);
成长
/ | \
学习 总结 分享
QQ交流群:122230156
查看全文
相关阅读:
超级管理员登录后如果连续XX分钟没有操作再次操作需要重新登录
linux下连接本地的navicate
linux 日常中会用到的命令(持续更新)
关于PHP的 PHP-FPM进程CPU 100%的一些原因分析和解决方案
VMware Workstation 14 激活码
破解phpstorm
redis五种数据类型的使用场景
关于Nginx负载均衡的6种策略
PHP和PHP-FPM 配置文件优化
redis配置文件详解
原文地址:https://www.cnblogs.com/benio/p/1582382.html
最新文章
spring整合ehcache注解实现查询缓存,并实现实时缓存更新或删除
HashMap实现原理分析
java.util.Arrays.asList 的小问题
eclipse maven 导出项目依赖的jar包
多线程技术: 两个线程交替打印奇数和偶数
阿里感悟系列文章(存)
spring中InitializingBean接口使用理解
Java中的24种设计模式与7大原则
java中动态代理的实现
服务端调用dubbo的方式
热门文章
HashMap和 Hashtable的比较
计算机相关名词解释
如何查看某个端口被谁占用
Eclipse 各版本版本号代号对应一览表
php--递归调用
html5优势
Linux查看程序端口占用情况
sort,ksort,asort的区别
redis的PHP扩展包安装方法
linux下安装memcache以及开启memcache扩展
Copyright © 2011-2022 走看看