
数据库
Gitter_
null :)
展开
-
sql之left join、right join、inner join的区别
sql之left join、right join、inner join的区别left join(左联接) 返回包括左表中的所有记录和右表中联结字段相等的记录 right join(右联接) 返回包括右表中的所有记录和左表中联结字段相等的记录 inner join(等值连接) 只返回两个表中联结字段相等的行举例如下: 表A记录如下: aID aNum 1 a20050111转载 2016-11-30 23:25:40 · 257 阅读 · 0 评论 -
新SQLAdvisor sql索引审核
https://github.com/nwsuafzq/SQLAdvisor 修复了部分bug;因为美团团队不对其进行维护了,现在准备寻找有识之士一起维护,详情加群原创 2018-12-21 17:48:59 · 374 阅读 · 0 评论 -
MySQL去重语句
按照某个键值将最小ID创建新表储存:create table tmp_table as select min(id) from wp_posts group by post_title;然后将储存在tmp中的id与原表对照,将原表中不存在与tmp中的id删除:delete from wp_posts where id not in (select * from tmp_table);...原创 2019-01-09 21:24:52 · 1231 阅读 · 0 评论