我如何将其合并到一个插入中
INSERT INTO masterTable (count1) select count(*) as count1 from tablex
INSERT INTO masterTable (count2) select count(*) as count2 from tabley
INSERT INTO masterTable (count3) select count(*) as count3 from tablez
最佳答案
INSERT INTO MasterTable (count1,count2,count3)
VALUES ((select count(*) from tablex),(select count(*) from tabley),(select count(*) from tablez))
关于mysql从多个选择查询插入表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34951705/