SELECT v.*, vt.id vid, vt.vote_id, vt. option, vt.poll FROM vote v JOIN vote_option vt ON v.id = vt.vote_id WHERE v.id IN ( SELECT t.id FROM ( SELECT id FROM vote ORDER BY id DESC LIMIT 0, 2 ) AS t ) ORDER BY id DESC
时间: 2024-10-13 16:38:29
SELECT v.*, vt.id vid, vt.vote_id, vt. option, vt.poll FROM vote v JOIN vote_option vt ON v.id = vt.vote_id WHERE v.id IN ( SELECT t.id FROM ( SELECT id FROM vote ORDER BY id DESC LIMIT 0, 2 ) AS t ) ORDER BY id DESC