sql语句
深蓝冰心
工作中
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
sql语句查询重复信息
前几天面试遇到的,当时不太会结果吃了点亏 在上查询的写法是这样的: select id, name, memofrom Awhere id in (select id from A group by id having count(1) >= 2)原创 2015-05-11 17:57:11 · 360 阅读 · 0 评论 -
左右连接的另外一种写法
刚刚实习,这是公司的左右连接规范,左连接以(+)结尾,右连接以(-)结尾 create or replace view view_user as select t.id,t.name,t.age ,b1.name as gender from demo_user t , (select db.* from dic_base db where db.dtyp原创 2015-05-24 23:30:31 · 718 阅读 · 0 评论
分享