0

Necesito una condicional que me diga que es el ultimo registro, para hacer algo

FOR algo IN    
select * from tabla
LOOP
IF(si es el ultimo registro) THEN
   "hacer algo"
END IF;
END LOOP;

1 respuesta 1

0

De esta manera puedes obtener el último registro

SELECT MAX(columna) FROM tabla;

Es un placer ayudarte. Saludos!

Tu Respuesta

By clicking “Publica tu respuesta”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

¿No es la respuesta que buscas? Examina otras preguntas con la etiqueta o formula tu propia pregunta.