oracle--with as
2016-06-16 12:01
387 查看
with as把一段查询结果放在临时表,后面的查询中可多次使用
语法:
with 别名 as(select * from table)
或
with 别名1 as(select * from table1),
.............
别名n as(select * from tablen)
示例:
ps:使用with as最后的select返回不能不写啊!!!!
语法:
with 别名 as(select * from table)
或
with 别名1 as(select * from table1),
.............
别名n as(select * from tablen)
示例:
with 别名 as(select * from table where ....) select * from 别名
ps:使用with as最后的select返回不能不写啊!!!!
相关文章推荐
- oracle call stored procedure with schema - PLS-00487 ORA-06550
- ORACLE 创建视图时,提示用户权限不足
- oracle数据库
- oracle执行计划小结
- oracle 将不同数据合并成一条行数据
- Oracle DB 体系结构
- Oracle导入本属于sys用户的表
- 解决 GeoServer 2.8.1 无法发布 Oracle Spatial 表名带下划线的图层
- Elasticsearch 2.3.2 从oracle中同步数据
- Linux下Oracle 11G XE 安装笔记
- 【Oracle】dba_jobs字段说明
- Oracle 聚组函数及运算符对NULL操作结果
- Oracle 多表查询
- redhat6.5下安装Oracle 10g文件 后缀为.cpio.gz(包括解压)
- 参考SQLHelper编写的OracleHelper
- Maven导入ojdbc14.jar和ojdbc6.jar
- Oracle树查询及函数
- oracle分区表详解
- PreparedStatement 批量更新,插入数据到Oracle
- 关于oracle启用实例,以及数据库重启