ORDER BY
子句用于对查询结果进行排序。使用ASC
关键字指定升序排列,而使用DESC
关键字指定降序排列。,,``sql,SELECT * FROM table_name ORDER BY column_name ASC; -升序,SELECT * FROM table_name ORDER BY column_name DESC; -降序,
``ORDER BY
子句用于对查询结果进行排序。使用ASC
关键字指定升序排列,而使用DESC
关键字指定降序排列。,,``sql,SELECT * FROM table_name ORDER BY column_name ASC; -升序,SELECT * FROM table_name ORDER BY column_name DESC; -降序,
``Powered By Z-BlogPHP 1.7.3