java.sql.SQLException: Subquery returns more than 1 row
这是因为子查询条件返回多个。
select * from user where id = (select user_id from role_user)
解决方案(子查询带条件,保证子查询结果只有一条)
`
2024-02-27 16:00:45
select * from user where id = (select user_id from role_user)
解决方案(子查询带条件,保证子查询结果只有一条)
`