We help IT Professionals succeed at work.
Get Started

load data from txt to mysql db

eduardo12fox
eduardo12fox asked
on
544 Views
Last Modified: 2012-05-11
I have a file in the format

using notepad + + to see the need to get data from column 13 to 31 and column 36 to 46 and 96 to 120

need to do it line by line to insert into mysql db

help me!
#DCC##EMB#0 052 551800003200 9"    28/04/1990   3-EMPRESARIAL     ENFERMARIA        31/12/2012"ANA PAULA AGUIAR PEREIRA      01"0052    AMB-ENF-OBS          GRUPO DE MUNICIPIOS NAO HA            INGRESSO TOTAL    "#ENC#ANA PAULA AGUIAR PEREIRA ;00525518000032009=011212=005205643000?#END#@@@@@@PRODUTO REGULAMENTADO     440013025
#DCC##EMB#0 052 551800003300 5"    18/07/1988   3-EMPRESARIAL     ENFERMARIA        31/12/2012"NATHALIA PINHEIRO COSTA       01"0052    AMB-ENF-OBS          GRUPO DE MUNICIPIOS NAO HA            INGRESSO TOTAL    "#ENC#NATHALIA PINHEIRO COSTA  ;00525518000033005=011212=005205643000?#END#@@@@@@PRODUTO REGULAMENTADO     440013025
#DCC##EMB#0 052 551800003400 1"    06/02/1984   3-EMPRESARIAL     ENFERMARIA        31/12/2012"SUELEN BRAGA                  01"0052    AMB-ENF-OBS          GRUPO DE MUNICIPIOS NAO HA            INGRESSO TOTAL    "#ENC#SUELEN BRAGA             ;00525518000034001=011212=005205643000?#END#@@@@@@PRODUTO REGULAMENTADO     440013025
#DCC##EMB#0 052 551800003500 8"    08/05/1989   3-EMPRESARIAL     ENFERMARIA        31/12/2012"LUIZ EDUARDO C GONCALVES      01"0052    AMB-ENF-OBS          GRUPO DE MUNICIPIOS NAO HA            INGRESSO TOTAL    "#ENC#LUIZ EDUARDO C GONCALVES ;00525518000035008=011212=005205643000?#END#@@@@@@PRODUTO REGULAMENTADO     440013025
#DCC##EMB#0 052 551800003600 4"    19/07/1991   3-EMPRESARIAL     ENFERMARIA        31/12/2012"EVELYN DA SILVA ANDRADE       01"0052    AMB-ENF-OBS          GRUPO DE MUNICIPIOS NAO HA            INGRESSO TOTAL    "#ENC#EVELYN DA SILVA ANDRADE  ;00525518000036004=011212=005205643000?#END#@@@@@@PRODUTO REGULAMENTADO     440013025
#DCC##EMB#0 052 551800003700 0"    02/01/1986   3-EMPRESARIAL     ENFERMARIA        31/12/2012"IVAN SERGIO M DE PAULA        01"0052    AMB-ENF-OBS          GRUPO DE MUNICIPIOS NAO HA            INGRESSO TOTAL    "#ENC#IVAN SERGIO M DE PAULA   ;00525518000037000=011212=005205643000?#END#@@@@@@PRODUTO REGULAMENTADO     440013025
#DCC##EMB#0 052 551800003800 7"    17/12/1988   3-EMPRESARIAL     ENFERMARIA        31/12/2012"JULIANA E V DE SOUZA          01"0052    AMB-ENF-OBS          GRUPO DE MUNICIPIOS NAO HA            INGRESSO TOTAL    "#ENC#JULIANA E V DE SOUZA     ;00525518000038007=011212=005205643000?#END#@@@@@@PRODUTO REGULAMENTADO     440013025

Open in new window

Comment
Watch Question
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE