我想将以下查询结果插入到新表中。请帮我这样做。这是查询
$result = mysql_query("SELECT item_name as 'Item Name', item_type as 'Item Type',
(SUM(item_qty)-(
SELECT SUM(srv_qty) FROM jos_sales
WHERE item_name=srv_name)
) AS Balance,
(SUM(item_qty)-(
SELECT SUM(srv_qty) FROM jos_sales
WHERE item_name=srv_name)
) * item_price AS 'Total Cost'
FROM jos_item c GROUP BY item_name");