在我的 MySQL 表记录下,我有这些:
SELECT * FROM dbo.online;
+-------+
| Id |
+-------+
| 10128 |
| 10240 |
| 6576 |
| 32 |
| 10240 |
| 10128 |
| 10128 |
| 12352 |
+-------+
8 rows in set (0.00 sec)
如何做到:
SELECT * FROM dbo.online;
+-------+
| Id |
+-------+
| 10128 |
| 10240 |
| 6576 |
| 32 |
| 12352 |
+-------+
8 rows in set (0.00 sec)
换句话说,我想做的是,使用 DELETE 命令而不是 SELECT * FROM dbo.online GROUP BY id .. 那么,知道怎么做吗?