Hello all good morning, I have to do a search in a form of c #, for this I have a procedure stored in MYSQL that will show the results of a certain word entered in a textbox, the issue is that the sp does not return any result, the procedure code is as follows:
CREATE DEFINER='administrador'@'%' PROCEDURE 'spBuscarFunNombre'(
in textoBuscar varchar(100)
)
BEGIN
SELECT * FROM funcionario WHERE nombres LIKE '% textoBuscar %' ;
END
I try it in the mysql
console and it does not bring records (tested with records that exist in the table).
Will I be doing something wrong? I do not mark error the sp.
Greetings to all and thanks