Ver Mensaje Individual
  #13 (permalink)  
Antiguo 24/09/2016, 13:27
Avatar de Triby
Triby
Mod on free time
 
Fecha de Ingreso: agosto-2008
Ubicación: $MX->Gto['León'];
Mensajes: 10.106
Antigüedad: 15 años, 8 meses
Puntos: 2237
Respuesta: quitar ceros a la izquierda al consultar campo character varying

Para que funcione el LIKE necesitas usar el comodín %, ejemplo:

Código MySQL:
Ver original
  1. WHERE a.cedper LIKE '%1234567'
__________________
- León, Guanajuato
- GV-Foto