MySQL Forums
Forum List  »  Spanish

Como Puedo Esta Consulta con Campos string
Posted by: Jarlis Antonio Pereira Aguilar
Date: July 17, 2019 10:20PM

Hola Amigos tengo un mi stored producere donde recivo el parametro idperso
yo realmente estoy comparando el campo nombre que es un varchar
pero no me devuelve nada....si me pueden ayudar gracias

DECLARE NombrePadre VARCHAR(200);
DECLARE NivelPadre INT;

SET @NombrePadre = (SELECT nombre FROM persona WHERE idpersona=idperso);
SET @NivelPadre = (SELECT idpadre FROM usuario WHERE nombre LIKE NombrePadre);

Options: ReplyQuote


Subject
Views
Written By
Posted
Como Puedo Esta Consulta con Campos string
900
July 17, 2019 10:20PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.