How to add processing results to the new column based on the existing table?
SELECT c.`id` , ( SELECT COUNT( * ) FROM `items_comments` WHERE `reply_to` = c.id ) AS сount FROM `items_comments` c WHERE c.`reply_to` =0 The query is executed, but how to add the result to the column?
In this example, I created in items_comments table a column reply_to_count , into which the results should fall.