oracle之子查询常用
2016-02-21 14:15
711 查看
子查询语法格式:
select 字段 from table where 表达式 操作(子查询语句)
oracle中sql执行的顺序是从where后最右边开始执行的,所以上面的sql在执行时,先执行子查询,
然后在执行mt.id in()作为where后数据查询的过滤条件。
select 字段 from table where 表达式 操作(子查询语句)
select * from mytest mt where mt.id in (select me.mytest_id from myline me);
oracle中sql执行的顺序是从where后最右边开始执行的,所以上面的sql在执行时,先执行子查询,
然后在执行mt.id in()作为where后数据查询的过滤条件。
相关文章推荐
- oracle SQL优化之高效的函数调用
- oracle之连接实战
- Toad 的功能亮点.
- oracle之子句使用
- oracle分区表
- oracle数据库中日期函数的用法
- oracle 表类型变量的使用
- oracle之函数使用大全
- Oracle中的NULL、’’(空字符串)以及’_’(空格)
- Oracle_我的一些使用规定/技巧/约定
- 中文linux安装oracle界面乱码解决方案
- ORACLE impdp / expdp 导入导出数据
- Oracle查询隐式类型转换不走索引
- Oracle 集群心跳及其參数misscount/disktimeout/reboottime
- Jmeter之JDBC Request使用方法(oracle)
- Linux Is Not Matrix——oracle监听设置
- oracle中split的使用
- oracle数据库学习 (上)
- Hadoop学习笔记——1.java读取Oracle中表的数据,创建新文件写入Hdfs
- Failed to upgrade Oracle Cluster Registry configuration(root.sh)