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.
假设我有一列字符串,我想获取此列表并将其作为列表发送给某人以查看,但是这些字符串未按字母顺序排序。无论如何,是否可以按字母顺序对这些结果进行排序,而无需实际重新排列柱子?
你在找ORDER BY条款吗?
ORDER BY
SELECT * FROM yourtable ORDER BY yourcolumn
无论如何,是否可以按字母顺序对这些结果进行排序,而无需实际重新排列列中的数据?
你的意思是
SELECT * FROM TableName ORDER BY somefield;
假设该ORDER BY字段是一个字符串,这将按字母顺序对表进行排序。但这不会重新排列该列中的数据。