去掉交换重复的数据 比如有两列id1 id21 21 32 13 1怎么得到id1 id21 21 3 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select *from table1 awhere not Exists (select 1 from table1 Where id1=a.id2 and id2=a.id1 and id1<id2) 加入自增字段IDselect *from ttj awhere not Exists (select 1 from ttj Where id1=a.id2 and id2=a.id1 and a.id>id) MySql安装到最后,报的错。求解释 mysql对比两个结构相同的表 为什么这个 随机抽取记录的 SQL 不工作? 当记录为空时如何虚拟一笔记录 请教一个MYSQL的UPDATE的问题,谢谢 请教数据库导入问题 MYSQL中是否能对所有表中里的所有数据进行字符替换?如何实现? mysql怎么设置数据存储的编码?java连接串带的参数什么意思? mysqldump倒出的数据库备份如何在装入Mysql数据库?? 考试成绩排名问题求助 mysql rand()函数的一个问题 MySQL里的USER表 终端输出和导出不一致,太神奇了
from table1 a
where not Exists (select 1 from table1 Where id1=a.id2 and id2=a.id1 and id1<id2)
select *
from ttj a
where not Exists (select 1 from ttj Where id1=a.id2 and id2=a.id1 and a.id>id)