. Advertisement .
..3..
. Advertisement .
..4..
I’m trying to Insert data from a table 1 into table 2 :
insert into table2(Name,Subject,student_id,result)
select (Name,Subject,student_id,result)
from table1;
but in my program, I am getting the warning :
"#1241 - Operand should contain 1 column(s)"
Can someone explain to me why the issue of the “ operand should contain 1 column(s)” happened? Where have I gone wrong? Thank you!
The cause: Syntax error
Solution: Remove the
from
This error could also happen if you use
AND
instead ofON
in theON
clause for aJOIN
.