Answers for "mysql order by two columns priority"

SQL
7

mysql order by two columns priority

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

Code answers related to "mysql order by two columns priority"

Code answers related to "SQL"

Browse Popular Code Answers by Language