继续我之前的问题。here
使用ORDER BY将某行移动到所有行的顶部之后
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
型
1条答案
按热度按时间1qczuiv01#
应翻译为:
字符串
fiddle
相关: