Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

mysql-error-1241

MySQL error 1241: Operand should contain 1 column(s)

February 16, 2023 by Tarik

Syntax error, remove the ( ) from select. insert into table2 (name, subject, student_id, result) select name, subject, student_id, result from table1;

Categories mysql Tags insert, mysql, mysql-error-1241, select, sql Leave a comment

MySQL – Operand should contain 1 column(s)

December 22, 2022 by Tarik

Your subquery is selecting two columns, while you are using it to project one column (as part of the outer SELECT clause). You can only select one column from such a query in this context. Consider joining to the users table instead; this will give you more flexibility when selecting what columns you want from … Read more

Categories mysql Tags mysql, mysql-error-1241, sql Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa