select * from users
where exists (
select 1 from orders where orders.user_id = users.id
)
mysql
最新推荐文章于 2024-09-03 22:56:19 发布
select * from users
where exists (
select 1 from orders where orders.user_id = users.id
)