Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想按 DESC 选择日期并限制为最后 3 个,然后我需要基本上翻转最后 3 个结果,以便它们按 ASC 排序
任何帮助将不胜感激我正在使用 postgresql
SELECT * FROM ( SELECT column_list FROM tableX ORDER BY dates DESC LIMIT 3 ) AS tmp ORDER BY dates ASC ;