Oracle With As
来源:互联网 发布:Java string转化为int 编辑:程序博客网 时间:2024/06/03 21:36
长期不写SQL后经常容易忘记,免得再次Baidu,写个简单例子方便查阅。
with
T1 as (select A from Table1),
T2 as (select A from Table2 where not exists (select A from T1 where rownum=1))
select * from T1
union all
select * from T2
union all
select 'no records' from dual
where not exists (select A from T1 where rownum=1)
and not exists (select A from T2 where rownum=1);
0 0
- ORACLE WITH AS 用法
- ORACLE WITH AS 用法
- oracle with as
- oracle with as
- oracle :with as
- ORACLE WITH AS 语法
- oracle with as 语法
- oracle with as 语法
- ORACLE WITH AS 用法
- Oracle WITH AS 用法
- ORACLE WITH AS 用法
- ORACLE WITH AS 用法
- oracle with as 用法
- ORACLE WITH AS 用法
- ORACLE WITH AS 用法
- ORACLE WITH AS 用法
- ORACLE WITH AS 用法
- ORACLE WITH AS 用法
- mdev的基本工作原理
- (图)广度优先遍历
- mongodb查询的语法(大于,小于,大于或等于,小于或等于等等)
- windows7 + vs2008 +WDk +DDkWizard 驱动开发环境搭建
- 如何复制百度文库的内容
- Oracle With As
- Minimum Depth of Binary Tree
- Android打造万能的ListView GridView Adapter
- 【iOS开发TableView】TabelView自定义cell
- 关于UVM中不能自定义uvm_printer_row_info的追踪
- eclipse 解决中文字体过小的问题,简单方便
- Linux下串口应用程序编程
- 函数的回调
- 黑马程序员---【C语言】02基本数据类型