原文:select查询出错single-row subquery returns more than one row

出错原因是select x from tablea where column select b from tableb 而子查询返回的结果不止一条按这个情况查询,有没有办法解决不出错又能查询到 select x from tablea where column any select b from tableb select x from tablea where column in select ...

2015-07-20 11:42 0 7968 推荐指数:

查看详情

MySQL出错信息: Subquery returns more than 1 row及其解决方法

练习MySQL联表查询时遇到这样一道题  - 问题: 查询"生物课程"比"物理课程"成绩高的所有学生的相关信息  - 出错指令: 存在问题的指令  - 报错信息:   ERROR 1242 (21000): Subquery returns more ...

Sat Apr 27 06:27:00 CST 2019 0 4416
[Err] 1242 - Subquery returns more than 1 row及处理办法

- 问题: 查询当"课程" 等于子查询里面的课程信息  - 出错指令: [Err] 1242 - Subquery returns more than 1 row 开始出错时的SQL 查看了好多原因,终于在一个博主中找到我想要的答案(https ...

Tue Aug 11 22:37:00 CST 2020 0 2922
Mysql报错:1172 - Result consisted of more than one row

执行mysql函数时报错:1172 - Result consisted of more than one row 函数语句中select into语句中WHERE account = userName查出的结果出现2条相同的记录才报出这个错误 SELECT id,last_stamp ...

Wed May 11 22:30:00 CST 2016 0 3402
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM