“SQL Selecione o último ID” Respostas de código

SQL Selecione o último ID

#Where the the column name is "ID" and table name is "tablename" and ID naming is increasing numerical value.
SELECT * 
FROM tablename
WHERE ID = (
    SELECT MAX(ID) 
  	FROM Table)
Kwams

SQL Obtenha o último id

SELECT MAX(id) FROM <tablename>
Old-fashioned Oystercatcher

SQL Selecione o último ID

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 Selecione o último ID”

Perguntas semelhantes a “SQL Selecione o último ID”

Mais respostas relacionadas para “SQL Selecione o último ID” em Sql

Procure respostas de código populares por idioma

Procurar outros idiomas de código