Answers for "mysql orderby"

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

MySQL ORDER BY

SELECT 
   select_list
FROM 
   table_name
ORDER BY 
   column1 [ASC|DESC], 
   column2 [ASC|DESC],
   ...;
Posted by: Guest on October-19-2020
0

mysql order by list

ORDER BY FIELD(id, 3, 11, 7, 1)
Posted by: Guest on May-03-2021
1

sort by myqsl

SELECT column1, column2, ...
FROM table_name
ORDER BY column1, column2, ... ASC|DESCl;
Posted by: Guest on February-19-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language