MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 22nd, 1999, 03:07 PM
NewGUI
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I have a table named test and I would like to be able to load records into it from my local pc. I have a local file named test.txt and a form that executes the load script(php) on the server. If test is empty the records go in fine. The problem is that I want to remove many of the records before I load the new ones so I delete from test where hold = 1 and then load the new records. It adds two records and the stops. I don't get an error message it just doesn't add all of the records.

Please help.

Reply With Quote
  #2  
Old December 14th, 1999, 09:44 AM
PAV
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I need more information on this. Is your server Unix and your local pc Windows?
Then the problem could be in the line termination: in windows 'rn', in Unix only 'r'.
So check the syntax of the LOAD DATA INFILE, especially the "LINES TERMINATED BY" part. Play around and see which line-termination works.
I have had the same problem and finally got it right.

Keep it up!

Peter

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Load Data Not adding all rows


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT