mysql - #1241 Operand should contain 1 column(s) in Insert into Select -
hey guys m working on sql , got error
first ll show code
insert historiqueequipement (datemhs,codeequipement,nomenclature) values (2015-03-28, (select codeequipement,nomenclature equipement numero_serie =241));
i got error #1241 - operand should contain 1 column(s); , if use
insert historiqueequipement (datemhs,codeequipement) values (2015-03-28, (select codeequipement equipement numero_serie =241));
it work where's problem want insert many columns not 1
i think getting error rows
returned select
more one. can use insert table select
this:
insert historiqueequipement (datemhs,codeequipement,nomenclature) select curdate(), codeequipement, nomenclature equipement numero_serie =241;
Comments
Post a Comment