原文: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