“SQL Last Row na tabela” Respostas de código

SQL Last Row na tabela

SELECT fields FROM table ORDER BY id DESC LIMIT 1;
Cute Crayfish

Como obter a última fila da tabela em SQL

mysql> select *from getLastRecord ORDER BY id DESC LIMIT 1;
Powerful Puffin

Selecione a última linha no SQL

SELECT TOP 1 * FROM Table ORDER BY ID DESC
Shy Seal

Selecione a última linha no SQL

SELECT
  (SELECT * FROM tableName ORDER BY col1 LIMIT 1)        AS first,
  (SELECT * FROM tableName ORDER BY col1 DESC LIMIT 1)   AS last
;
VasteMonde

Respostas semelhantes a “SQL Last Row na tabela”

Perguntas semelhantes a “SQL Last Row na tabela”

Mais respostas relacionadas para “SQL Last Row na tabela” em Sql

Procure respostas de código populares por idioma

Procurar outros idiomas de código