摘要: https://jingyan.baidu.com/article/597035521ff2ec8fc107404b.html rank() over 得分 名次 100 1 99 2 99 2 98 4 dense_rank() 得分 名次 100 1 99 2 99 2 98 3 row_num 阅读全文
posted @ 2017-06-05 17:16 轻风如水 阅读(160) 评论(0) 推荐(0)
摘要: 假设有一张这样的表: 其中,第六行的name_x为空。 那么能不能把不为空的查出来呢? 试试,我们第一瞬间就想出来的SQL: select * from test_1 where name_x not in null; --执行 结果:发现查不出任何的数据 同样 select * from test 阅读全文
posted @ 2017-06-05 17:01 轻风如水 阅读(661) 评论(0) 推荐(0)
摘要: --1 建表 create table city_table( city_name varchar2(100) ,District varchar2(100)); --2 插入数据 insert into CITY_TABLE (CITY_NAME, DISTRICT)values ('北京', ' 阅读全文
posted @ 2017-06-05 16:12 轻风如水 阅读(2081) 评论(0) 推荐(0)