Mysql experts where are you

Discussion in 'MySQL' started by arunsuriindia, Mar 8, 2007.

  1. #1
    download this csv
    http://www.bseindia.com/bhavcopy/EQ070307.CSV

    table name bse all column can coontain null value

    'code' ‘varchar(45)'
    'name' 'varchar(45)'
    'kind' 'varchar(45)'
    'type' 'varchar(45)'
    'open' 'varchar(45)'
    'high' 'varchar(45)'
    'low' 'varchar(45)'
    'close' 'varchar(45)'
    'last' 'varchar(45)'
    'prevclose' 'varchar(45)'
    'trades' 'varchar(45)'
    'qty' 'varchar(45)'
    'vol' 'varchar(45)'
    'corp' 'varchar(45)'


    now download the file from the link above and load it in this table.

    also give me the load data infile command
     
    arunsuriindia, Mar 8, 2007 IP
  2. steb

    steb Peon

    Messages:
    213
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    some politeness may help...
     
    steb, Mar 8, 2007 IP
  3. arunsuriindia

    arunsuriindia Peon

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ya sure i need it shall be really polite next time
     
    arunsuriindia, Mar 8, 2007 IP
  4. Daz

    Daz Guest

    Messages:
    1,355
    Likes Received:
    53
    Best Answers:
    0
    Trophy Points:
    0
    #4
    XD This is just hilarious..
     
    Daz, Mar 8, 2007 IP
  5. arunsuriindia

    arunsuriindia Peon

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    friend kindly let me know a solution
     
    arunsuriindia, Mar 8, 2007 IP
  6. daboss

    daboss Guest

    Messages:
    2,249
    Likes Received:
    151
    Best Answers:
    0
    Trophy Points:
    0
    #6
    masked with nice words... but somehow, can still detect an irritated tone. ;) :D
     
    daboss, Mar 8, 2007 IP
  7. spachev

    spachev Peon

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    load data local infile ' EQ070307.CSV' into table bse fields terminated by ',' enclosed by '"'

    you may need to play with the terminated by and and enclosed by. MySQL online manual reading strongly recommended. It would take you less time to type the command than to post a message for help in the forum once you get the hang of it.
     
    spachev, Mar 8, 2007 IP
  8. arunsuriindia

    arunsuriindia Peon

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    i did a lot of effort in this i get a strange error each time i excute the command error no 1261 :row 2625 doesn`t contain data for all columns.
    no this error occurs typically on the last or second last line of each different file also. the data is complete and well upto the the mark.

    is there any software like navicat for mysql which does all the work by the wizard and show us the command also
     
    arunsuriindia, Mar 8, 2007 IP
  9. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #9
    Title: Mysql experts where are you
    Post: I'm a turd burgler, but figure out this solution for me... but faster!
     
    ccoonen, Mar 9, 2007 IP
  10. arunsuriindia

    arunsuriindia Peon

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    yes the solution is quite tough i broke my head a lot with this
     
    arunsuriindia, Mar 10, 2007 IP
  11. SilkySmooth

    SilkySmooth Well-Known Member

    Messages:
    1,583
    Likes Received:
    269
    Best Answers:
    0
    Trophy Points:
    180
    #11
    Mysql experts where are you... I am right here... I charge $50 p/h but for you I will make it $75 p/h... get some manners man, sheesh!
     
    SilkySmooth, Mar 10, 2007 IP