dbTalk Databases Forums  

simple load query

mailing.database.myodbc mailing.database.myodbc


Discuss simple load query in the mailing.database.myodbc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
kalin mintchev
 
Posts: n/a

Default simple load query - 01-17-2006 , 06:05 PM








hi all...

whats the problem with this:
load data infile 'stores.txt' into table useyourcash_sports_us (chain,
store, address1, address2, city, state, zip,web) FIELDS TERMINATED BY '\t'

i get:
You have an error in your SQL syntax; check the manual that corresponds
to your MySQL server version for the right syntax to use near 'FIELDS
TERMINATED BY '\t'' at line 1

why feilds term... is wrong there?

thanks a lot...


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=m...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
James Harvard
 
Posts: n/a

Default Re: simple load query - 01-17-2006 , 07:54 PM






Your FIELDS clause is not in the right place:
http://dev.mysql.com/doc/refman/5.0/en/load-data.html
HTH,
James Harvard

At 7:06 pm -0500 17/1/06, kalin mintchev wrote:
Quote:
whats the problem with this:
load data infile 'stores.txt' into table useyourcash_sports_us (chain,
store, address1, address2, city, state, zip,web) FIELDS TERMINATED BY '\t'

i get:
You have an error in your SQL syntax; check the manual that corresponds
to your MySQL server version for the right syntax to use near 'FIELDS
TERMINATED BY '\t'' at line 1
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=m...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.