如何选择一个值在另一个表中也包含的行



假设表A

<表类> 名称 年龄 tbody><<tr>Jon23丽丽43

使用EXISTS条件:

select a.*
from tablea a
where exists (select * 
from tableb b
where lower(a.name) = lower(b.name));

相关内容

最新更新