
select* from b where a in (值)查询的时 怎么查看不在in里的值
展开全部
你是不是少写了个from哦
select * from A where id in (select abc from B where id=1 )
再就是abc为字符串字段,id是int字段,最好使用转换,而不是系统自动转换
select * from A where id in (select abc from B where id=1 )
再就是abc为字符串字段,id是int字段,最好使用转换,而不是系统自动转换
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询