求助 表A字段:So_no,Prd_no表B字段:so_no,prd_no,A,B想得到记录集:B表中所有在A表中存在的so_no,prd_no 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from B where exists(select 1 from A where a.So_no=b.So_no and a.Prd_no=b.Prd_no) SELECT so_no,prd_no from b where exists(select 1 from a where a.So_no = b.so_no and a.Prd_no = b.prd_no) select * from b where exists(select 1 from a where So_no=b.So_no and Prd_no=b.Prd_no) select * from b where exists(select 1 from a where So_no=b.So_no and Prd_no=b.Prd_no) select * from b where exists(select 1 from a where So_no=b.So_no and Prd_no=b.Prd_no) SQL Server 分组查询数据 求一个SQL语句,急急,谢谢 关于SQL语句的问题 请教:数据库差异备份还原的问题 存储过程中建view出错 怎么优化这样的查询 SQLserver 导出 大文件 到局域网内的电脑 最佳组合问题 数据库中有一个产品表。产品有一个属性是point 然后会员也有一个point,有一个地方需要找出6个产品,他们point之和最接近于用户point 请问select语句有没有排除字段的功能?例如选择除某一字段外的所有字段。 如何写交叉查询的语句 附加数据库不了。 求救。 求一个自查询的语句
select * from b where exists(select 1 from a where So_no=b.So_no and Prd_no=b.Prd_no)