我有这个声明:
INSERT INTO qa_costpriceslog (item_code, invoice_code, item_costprice)
VALUES (1, 2, (SELECT item_costprice FROM qa_items WHERE item_code = 1));
我正在尝试插入与 item_costprice 相同数据的值副本,但显示错误:
Error Code: 1136. Column count doesn't match value count at row 1
我怎么能解决这个问题?