select * from 表2 where 编号 in (select 编号 from 表1 where 什么='什么') 转载于:https://www.cnblogs.com/danznb/p/3621514.html