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 · 295 阅读 · 0 评论 -
左右连接的另外一种写法
刚刚实习,这是公司的左右连接规范,左连接以(+)结尾,右连接以(-)结尾create or replace view view_user asselect 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 · 661 阅读 · 0 评论