Subquery returns more than 1 row

来源:互联网 发布:win10优化工具 推荐 编辑:程序博客网 时间:2024/05/24 01:53

Subquery returns more than 1 row表示子查询返回了多行数据

例如:

select * from table1 where table1.colums=(select columns from table2)

解决方法

select * from table1 where table1.colums=any(select columns from table2)

原创粉丝点击