正如标题所述,我试图在一张桌上插入从另一个桌子和一些违约数值中挑选数值。
INSERT INTO def (catid, title, page, publish)
(SELECT catid, title from abc), page , yes )
INSERT INTO def (catid, title, page, publish)
VALUES
((SELECT catid, title from abc), page , yes ))
The first query gives a mysql error and the second one gives column count does not match.
What do I need to do?