MySQL Forums
Forum List  »  Spanish

Ayuda en consulta
Posted by: Marcos Zambrano
Date: May 01, 2020 08:56AM

Buen día. Por favor alguien podría ayudarme con una consulta.
set p_findValue='marc';
SELECT *
FROM Users
WHERE userName= p_findValue OR firstName like p_findValue+'%' OR email=p_findValue;
El problema en con firstName like p_findValue+'%' me muestra un error en el signo +
"+" is not valid at this position, expecting EOF, ';'

Options: ReplyQuote


Subject
Views
Written By
Posted
Ayuda en consulta
234
May 01, 2020 08:56AM
76
May 01, 2020 09:19AM
90
May 01, 2020 10:14AM


Sorry, only registered users may post in this forum.

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.