可以使用SELECT語(yǔ)句中的ORDER BY子句來(lái)對(duì)結(jié)果進(jìn)行排序。例如:
SELECT * FROM table_name ORDER BY column_name;
這將按照指定列的值對(duì)結(jié)果進(jìn)行升序排序??梢允褂肈ESC關(guān)鍵字對(duì)結(jié)果進(jìn)行降序排序:
SELECT * FROM table_name ORDER BY column_name DESC;
億速云公眾號(hào)
手機(jī)網(wǎng)站二維碼
Copyright ? Yisu Cloud Ltd. All Rights Reserved. 2018 版權(quán)所有
廣州億速云計(jì)算有限公司粵ICP備17096448號(hào)-1 粵公網(wǎng)安備 44010402001142號(hào)增值電信業(yè)務(wù)經(jīng)營(yíng)許可證編號(hào):B1-20181529