Answers for "How to sort in ascending order mysql"

SQL
8

sort by mysql

SELECT * FROM table_name ORDER BY col1 ASC;				-- ASCending is default
SELECT * FROM table_name ORDER BY col1 DESC;			-- DESCending
SELECT * FROM table_name ORDER BY col1 DESC, col2;		-- col1 DESC then col2 ASC
Posted by: Guest on May-09-2021
3

ascending order mysql

SELECT 
   column_name1, column_name2, column_name3
FROM 
   table_name
ORDER BY 
   column_name1 [ASC|DESC], 
   column_name2 [ASC|DESC],
   ...;
Posted by: Guest on September-14-2020

Code answers related to "How to sort in ascending order mysql"

Code answers related to "SQL"

Browse Popular Code Answers by Language