“Ordem SQL por alfabética” Respostas de código

Como classificar nomes em ordem alfabética no SQL

SELECT id,  
    first_name,
    last_name, 
  FROM customer
  ORDER BY last_name ASC;
Clean Caracal

Ordem SQL por alfabética

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

Respostas semelhantes a “Ordem SQL por alfabética”

Perguntas semelhantes a “Ordem SQL por alfabética”

Mais respostas relacionadas para “Ordem SQL por alfabética” em Sql

Procure respostas de código populares por idioma

Procurar outros idiomas de código