“SQL Seleccione la última ID” Código de respuesta

SQL Seleccione la última 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 obtiene la última identificación

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

SQL Seleccione la última ID

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

Respuestas similares a “SQL Seleccione la última ID”

Preguntas similares a “SQL Seleccione la última ID”

Más respuestas relacionadas con “SQL Seleccione la última ID” en Sql

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código