Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/10/2011, 16:34
Geovanny0401
 
Fecha de Ingreso: diciembre-2009
Mensajes: 137
Antigüedad: 14 años, 4 meses
Puntos: 4
Pregunta resultado de Query

amigos del foro tengo el sgte query en la tabla de liquidacion tengo ingresado unos registro como esto

Código PHP:
1,RC,123456,MUÑOZ,GONZALEZ,JAVIER,,02/05/1988,M,20,001
2
,RC,145656,PEREZ,GONZALEZ,JAVIER,,02/05/1978,M,20,001
3
,RC,127894,RIOS,GONZALEZ,JAVIER,,02/05/1956,M,20,060
4
,RC,135692,POLO,GONZALEZ,JAVIER,,02/05/1946,M,20,013 
entonces ejecuto el query sgte
Código PHP:
SELECT `CONSECUTIVO`,`TIPODOC`,`NUMDOCAFI`,`APE1`,`APE2`,`NOM1`,`NOM2`,`FECHNAC`,SEXO,CODDPTO,CODMPIO FROM EPSCOMFACOR.epsliquidacion 
pero me genera este resultado

Código PHP:
1,RC,123456,MUÑOZ,GONZALEZ,JAVIER,,02/05/1988,M,20,1
2
,RC,145656,PEREZ,GONZALEZ,JAVIER,,02/05/1978,M,20,1
3
,RC,127894,RIOS,GONZALEZ,JAVIER,,02/05/1956,M,20,60
4
,RC,135692,POLO,GONZALEZ,JAVIER,,02/05/1946,M,20,13 
el problema es q no me esta tomando los ceros antes del campo codmpio, por eso necesito la ayuda de ustedes