简单查询 a 表 no ,verb 表 no ,ver a.no=b.no查询所有的ver 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select ver from a union select ver from b select ver from aunion allselect ver from b select ver from awhere no in(select no from b) --查询a.no=b.no条件下的所有verselect ver from awhere no in(select no from b)--查询所有不重复的verselect ver from a union select ver from b select a.* , b.* from a , b where a.no=b.no --这样?select a.* , b.* from a , b where a.no=b.no--还是这样?select a.ver from a , b where a.no=b.nounion allselect b.ver from a , b where a.no=b.no 如何查询 SQL 0带头的纯数字怎么储存 请教将TXT文件导入SQL Server 关于生成明细帐的查询语句? 请教SQL Server安装的先决条件问题 如何替换B字段内包含A字段文字的部分 请问大家,淘宝7天自动退款的功能怎么实现呢。 SQL 麻烦高手给我写一下这个存储过程,谢谢,不会写 为什么我不能给分呀? 询问:如何在将授权的语句gran写道存储过程中? T-SQL问题 被一个SQL更新语句难住了,达人速进!!!
union
select ver from b
union all
select ver from b
select ver from a
where no in(select no from b)
--查询a.no=b.no条件下的所有ver
select ver from a
where no in(select no from b)--查询所有不重复的ver
select ver from a
union
select ver from b
select a.* , b.* from a , b where a.no=b.no--还是这样?
select a.ver from a , b where a.no=b.no
union all
select b.ver from a , b where a.no=b.no