sql字段匹配问题 表结构:id A B1 123 4562 789 4563 456 1234 789 123———————————如何查询出记录1和3——————————还是可以再程序中实现? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from tb where id in(1,3) select * from tb mwhere exists(select 1 from tb where A=m.B and B=m.A)貌似可以。给看看 select * from tb mwhere exists (select 1 from tb where a=b and B=m.A select * from tb mwhere exists (select 1 from tb where a=b and B=m.A) 求一个sql语句 和并列 如何调用存储过程 菜鸟问题~ 求时间函数 什么是sql缓存啊,大家来给讲讲 记录与记录之间的日期比较如何实现呢? Sql server 数据导到oralce java查询sqlserver2005生成txt文件 sql2005 SQL双重循环的问题! 一个单子段查询返回为列表的问题。我又来sql版了,这次乖乖的100分放上。各位达人来解决问题吧。 请教一个SQL2000的慈溪市去除重复时间的问题
from tb m
where exists(select 1 from tb where A=m.B and B=m.A)
貌似可以。给看看
where exists (select 1 from tb where a=b and B=m.A
where exists (select 1 from tb where a=b and B=m.A)