SQL语句错误:Operand should contain 1 column(s)【查询多个字段不用加括号】
生活随笔
收集整理的這篇文章主要介紹了
SQL语句错误:Operand should contain 1 column(s)【查询多个字段不用加括号】
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
select (id,username,nickname,gender,email,createtime,usercode) from user;
14:43:58 select (id,username,nickname,gender,email,createtime,usercode) from user LIMIT 0, 1000 Error Code: 1241. Operand should contain 1 column(s) 0.000 sec復制代碼不能在select后的查詢字段出加括號 改正:
select id,username,nickname,gender,email,createtime,usercode from user;
select后的括號一般是一些方法運用時,例如:count(*),聚集函數max()等。 其他情況尚未遇到。
轉載于:https://juejin.im/post/5c7cc9176fb9a049cd54ec05
總結
以上是生活随笔為你收集整理的SQL语句错误:Operand should contain 1 column(s)【查询多个字段不用加括号】的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 求最大值及其下标编程总结
- 下一篇: Yearning v1.4.2 发布,S