![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
27/04/2011, 08:46
|
| | Fecha de Ingreso: abril-2009
Mensajes: 83
Antigüedad: 15 años, 10 meses Puntos: 2 | |
Respuesta: like en procedimiento almacenado intenta con esto
SET @consulta = CONCAT('SELECT * FROM tabla where campo like ''%,'Variable,'%''');
PREPARE ejecutar FROM @consulta;
EXECUTE ejecutar; |