如何将其合并为单个插入
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
答案 0 :(得分:1)
INSERT INTO MasterTable (count1,count2,count3)
VALUES ((select count(*) from tablex),(select count(*) from tabley),(select count(*) from tablez))