SELECT lists.id, list_items.id, l_id, description, sort, likes
FROM (SELECT * FROM lists WHERE share = 1) lists
LEFT JOIN (SELECT * FROM list_items GROUP BY l_id) list_items
ON lists.id = l_id
SELECT lists.id, list_items.id, l_id, description, sort, likes
FROM (SELECT * FROM lists WHERE share = 1) lists
LEFT JOIN (SELECT * FROM list_items GROUP BY l_id) list_items
ON lists.id = l_id
同じmysqlサーバーの異なるデータベースからテーブルを複製する SELECT * .. LiMIT start、ORDER BY句なしでカウントを使用してMySQLのテーブルをスキャンするのは正しいですか?