“SQL Obtenha a última linha inserida” Respostas de código

Como obter a última fila da tabela em SQL

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

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 a última linha inserida

select * from table where ID = (SELECT @@IDENTITY)
Jeremy

Respostas semelhantes a “SQL Obtenha a última linha inserida”

Perguntas semelhantes a “SQL Obtenha a última linha inserida”

Mais respostas relacionadas para “SQL Obtenha a última linha inserida” em Sql

Procure respostas de código populares por idioma

Procurar outros idiomas de código