“SQL Order By Clause” Kode Jawaban

Pesan oleh SQL

//this_for_descending_order.. 
 SELECT * FROM TableName ORDER BY columnName DESC;
 // this_for_ascending_order..
SELECT * FROM TableName ORDER BY columnName ASC;
Nutty Nightingale

Urutkan berdasarkan SQL

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
VasteMonde

SQL Order By Clause

SELECT *
FROM Customers
ORDER BY first_name;
SAMER SAEID

Jawaban yang mirip dengan “SQL Order By Clause”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya