First count the number of distinct numbers. You have called it n . Then SELECT COUNT(*) FROM tbl WHERE id IN (very-long-list).
確定! 回上一頁