在sql语句中如何进行循环查询

2025-02-23 21:49:09
推荐回答(1个)
回答1:

你是相查表中所有条件为表1.a=表2.a 的记录吗
如果是 可用以下语句
select * from 表2 where 表2.a in (select a from 表1)