这个MySQL语句怎么写??? MySQL数据库中在tab1中有6个apple,5个bus,7个dog...,要写一条SQL语句,去除重复,使apple,bus,dog..都只有一条记录..请问MySql语句怎么写??? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 #假设tab1中有主键iddelete tab1 from tab1 left join (select id from tab1 group by name) t on tab1.id = t.id where t.id is null select distinct xxxx from tab1;select distinct * from tab1 order by xxxx; where t.id is null 这句是什么意思。。 能具体解释下。。整条语句吗? 谢谢了。。 insert into ... select ... on duplicate key ...语句的问题 求这么个SQL语句吧 这2个查询该怎么写? MySQL中建立一个只能用户看到的视图 如何知道自增主键的下一个值是多少? MYSQL在不同的系统下,linux与 window下还不一样吗? 数据库在运行一段时间后就没有响应了,可能是死锁的问题? 谁知道mysql数据库怎么限制每个用户的使用空间啊? 求大神看下 语法哪里错了? Navicat 连接 wamp中MySQL的问题 主键设为自增量,如何写入数据库? MYSQL导入数据到数据表中部分字段
delete tab1
from tab1 left join (select id from tab1 group by name) t on tab1.id = t.id
where t.id is null
能具体解释下。。整条语句吗? 谢谢了。。