摘要: 谈谈oracle里的join、left join、right join create table l as select 'left_1' as str,'1' as v from dual union allselect 'left_2' ,'2' as v from dual union all 阅读全文
posted @ 2018-04-02 23:48 不忘初心、继续奋斗 阅读(407) 评论(0) 推荐(0)
摘要: Oracle中的rownum 和rowid的用法和区别 1.rownum是伪列,是在获取查询结果集后再加上去的 (获取一条记录加一个rownum)。对符合条件的结果添加一个从1开始的序列号。 eg: select rownum,phone_no from ur_user_info where row 阅读全文
posted @ 2018-04-02 23:44 不忘初心、继续奋斗 阅读(182) 评论(0) 推荐(0)
摘要: 关于oracle with as用法 with as语法–针对一个别名with tmp as (select * from tb_name) –针对多个别名with tmp as (select * from tb_name), tmp2 as (select * from tb_name2), t 阅读全文
posted @ 2018-04-02 23:06 不忘初心、继续奋斗 阅读(228) 评论(0) 推荐(0)