主外键表的查询 table aaid nametable bbid aid sex如何查 table a里在table b 里面没有 aid的列呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from aexceptselect * from b select * from awhere aid not in(select distinct aid from b) select * from awhere not exists(select 1 from b where aid=a.aid) select a.* from a join b on a.aid=b.aid Table aaid aname asexTable bbid aid bnameselect a.aid a.aname a.asex from a a, b b where a.aid<>b.aid这样可以查出来么 查找,去掉ID重复 [技术共享]如何在服务器中查询表所在的数据库名称 存储过程里的操作要么全做,要么全不做。该怎么处理? 插入数据速度的问题? 如何获取数据库所有信息 请教一个较简单的事务问题 有三个表,查询,请帮我看看,如何处理为好 “非法的游标状态”一般是指什么错误??? 如何改变数据库实例的名称??? 有谁知道BpWin 2.5 的Crack或License 各位大大,请教sql语句 自动赋值
except
select * from b
where aid not in
(select distinct aid from b)
select * from a
where not exists
(select 1 from b where aid=a.aid)
aid aname asex
Table b
bid aid bnameselect a.aid a.aname a.asex from a a, b b where a.aid<>b.aid这样可以查出来么