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 September 25th, 2000, 03:29 PM
yoshi yoshi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2000
Posts: 108 yoshi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via ICQ to yoshi
LOAD DATA INFILE works fine normally, but will not work fot this table:

CREATE TABLE search_cat(
title VARCHAR (70) not null,
place VARCHAR (200) not null);

An example of the file being loaded:
"Acting","Arts/Performing_Arts/"
"Genres","Arts/"
"Horror","Arts/Genres/"

And resulting data is entered as:
--------------------------------------------------------------
Regional | Arts/Performing_Arts/" "Acting*|
Genres | Arts/" "Horror |
Science_Fiction_and_Fantasy | Arts/Genres/" "Art* |
--------------------------------------------------------------

Any idea to why this is not loading properly?


Thank you.
yoshi
datera@datera.com http://www.datera.com

[This message has been edited by yoshi (edited September 25, 2000).]

Reply With Quote
  #2  
Old September 25th, 2000, 08:20 PM
billyo billyo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 114 billyo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
I could be totally wrong, but I don't think you need to put text values in quotes for LOAD DATA INFILE. Also, I thought that command worked for tab-delmited files, I've never tried to feed it a file that used commas as delimters?

Reply With Quote
  #3  
Old September 25th, 2000, 11:58 PM
Carpe Diem
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Yes you can use all different methods for load data infile

Make sure you are using :-
FIELDS ENCLOSED BY '"' FIELDS TERMINATED BY ','

Regards
Darren http://www.php4hosting.com/ $ http://www.php4hosting.co.uk/ £
PHP/MySQL Hosting from under $5

Reply With Quote
  #4  
Old September 26th, 2000, 09:56 AM
billyo billyo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 114 billyo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
word.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Load Data Doesn't Work?


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 5 hosted by Hostway
Stay green...Green IT