sqlserver中sql语句的写法
推荐于2017-08-29
展开全部
sqlserver中sql语句的写法
select * from A where A1 not in (select A1 from B)
union all
select * from A where A1 in (select A1 from B where B3=2 and B4=1)
select * from A where A1 not in (select A1 from B)
union all
select * from A where A1 in (select A1 from B where B3=2 and B4=1)
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
select * from A where A1 not in (select A1 from B)
union all
select * from A where A1 in (select A1 from B where B3=2 and B4=1)
你试试
union all
select * from A where A1 in (select A1 from B where B3=2 and B4=1)
你试试
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
select A.* from A left join B on b.A1=A.A1 where B3=2 and B4=1
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
你这个描述太模糊了,是原题吗
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询