Jump to content


Photo

Importar Planilla Excel a MySQL


  • Please log in to reply
4 replies to this topic

#1 golf2009

golf2009

    Advanced Member

  • Miembros
  • PipPipPip
  • 99 posts

Posted 14 October 2010 - 05:33 AM

Hola a todos:
Me están preguntando si existe la posibilidad de hacer un copiar y pegar de una planilla excel a una tabla mysql.
Es posible?
Desde ya muchas gracias
  • 0

#2 enecumene

enecumene

    Webmaster

  • Administrador
  • 7419 posts
  • LocationRepública Dominicana

Posted 14 October 2010 - 07:48 AM

Esto te puede ayudar

Saludos.
  • 0

#3 jorgeu

jorgeu

    Advanced Member

  • Miembro Platino
  • PipPipPip
  • 179 posts
  • LocationMaracaibo

Posted 27 October 2010 - 02:51 PM

una manera es guardar el archivo en formato CSV e intentar cargarlo con



sql
  1. LOAD DATA LOCAL INFILE '/importfile.csv'
  2. INTO TABLE test_table
  3. FIELDS TERMINATED BY ','
  4. LINES TERMINATED BY '\n'
  5. (field1, filed2, field3);



Fuente -> http://support.modwe...into-mysql.html
  • 0

#4 golf2009

golf2009

    Advanced Member

  • Miembros
  • PipPipPip
  • 99 posts

Posted 28 October 2010 - 09:00 AM

Ok, gracias muy amable de tu parte
  • 0

#5 egostar

egostar

    missing my father, I love my mother.

  • Administrador
  • 14448 posts
  • LocationMéxico

Posted 28 October 2010 - 09:03 AM

La otra opción es abrir tu archivo excel con ADO y hacer la migracion de dataset(Excel) a dataset(MySQL).

Salud OS
  • 0




IP.Board spam blocked by CleanTalk.