SELECT *
FROM comments
ORDER BY comment <> 'my comment', id;
如果我想要 other comment
从小于 id = 5 的示例开始,该怎么办?
id comment
other comment 149 my comment
other comment 148 my comment
other comment 147 my comment
my comment => 4 other comment -- start from less than id = 5
other comment 3 other comment
my comment 2 other comment
my comment 1 other comment
SELECT *
FROM comments
WHERE (id < 5 or comment = 'my comment')
ORDER BY comment <> 'my comment', id DESC