insert into tblcustomermachine
(
select * from
((select vch_CustomerID from tblcustomer where tblcustomer.vch_CustomerID='Cust00001')
union all
(select Rate from tblmachine)) as t);
該表包含18列,該結果集還包含18行,但它顯示「列計數與第1行的值計數不匹配」。爲什麼?這個mysql插入查詢有什麼不對嗎?
resultset還包含18行。它必須在結果集中包含18列 – 2011-02-08 11:40:25