Add Mass Data To Database

Discussion in 'Programming' started by poblo10, Oct 4, 2010.

  1. #1
    So I have a question say if I wanted to add a bunch of text to a database, but in its own separate row how would I go about doing that.
    Because its alot of text and I do not want to set up the basic insert query for like a 1000 things of text that need to go into there own rows
     
    poblo10, Oct 4, 2010 IP
  2. aquilax

    aquilax Member

    Messages:
    126
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    33
    #2
    Create a script to import the text in multiple rows or use the database's imort mechanism.
     
    aquilax, Oct 4, 2010 IP
  3. nirajkum

    nirajkum Active Member

    Messages:
    815
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #3
    well parse the data line by line and import it into the database
     
    nirajkum, Oct 5, 2010 IP
  4. hirensoni913

    hirensoni913 Peon

    Messages:
    79
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    if its in .txt file just use bulk insert. thats the easiest way. If you are clear with bulk insert then just give me a sample text file and table definition i will right a query for you.
     
    hirensoni913, Oct 15, 2010 IP
  5. naviarora2007

    naviarora2007 Active Member

    Messages:
    163
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #5
    If the data is in tables, csv you can easily convert them in SQL and import in your database using phpmyadmin of cpanel.
     
    naviarora2007, Oct 17, 2010 IP
  6. merabasera

    merabasera Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You can simply use bulk insert command
     
    merabasera, Oct 18, 2010 IP
  7. papillon

    papillon Greenhorn

    Messages:
    54
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #7
    which DB you using?
     
    papillon, Oct 22, 2010 IP