我们先来看查询重复记录
代码如下 | 复制代码 |
SELECT * |
删除的话也很简单的了
代码如下 | 复制代码 |
delete from people where peopleid in (select peopleid from people group by peopleid having count (peopleid) > 1) and rowid not in (select min(rowid) from people group by peopleid having count (peopleid )>1) |
例
id name
1 a
2 b
3 c
4 c
5 b
完整语句放出:
代码如下 | 复制代码 |
select *, count(distinct name) from table group by name 结果: id name count(distinct name) |
原来还有更简单的办法啊。
模拟农场15手游
模拟农场15呈现真实的田园管理体验。在这片广阔的土地上,可以
我叫包租婆红包版
我叫包租婆红包版是一款非常经典的模拟休闲类手机游戏,玩家将在
盖瑞模组可以加模组的版本
盖瑞模组游戏是一款沙盒建造类游戏,自由建造专属场地,在游戏过
星露谷物语美化包mod手机版
星露谷物语美化版汉化版是一个高度自由的像素农场经营类小游戏,
盖瑞模组原版完整版
盖瑞模组对于喜欢沙盒手游的玩家是非常受欢迎的,这里没有规则限