Unix Technical Forum

importing data into MYSQL

This is a discussion on importing data into MYSQL within the MySQL forums, part of the Database Server Software category; --> Hi does anyone have an example command line syntax command for importing a delimited flat file with a delimiter ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 09:03 AM
Jack
 
Posts: n/a
Default importing data into MYSQL

Hi does anyone have an example command line syntax command for
importing a delimited flat file with a delimiter into mysql ??

Also, does anyone have insight into this - I tried to use TOAD to
import, but there is this "String Quote Character" entry which does
not allow import of single quotes if you enter a single quote - does
anyone know what to put in this entry ? I tried { and it seemed to
work but this is a strange requirement.

Thank you,

Ben

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 09:05 AM
nino9stars@yahoo.com
 
Posts: n/a
Default Re: importing data into MYSQL

On Jan 30, 11:10 am, "Jack" <jack_posem...@yahoo.com> wrote:
> Hi does anyone have an example command line syntax command for
> importing a delimited flat file with a delimiter into mysql ??


I usually import data using LOAD DATA INFILE. Here is the manual
entry:
http://dev.mysql.com/doc/refman/5.0/en/load-data.html


> Also, does anyone have insight into this - I tried to use TOAD to
> import, but there is this "String Quote Character" entry which does
> not allow import of single quotes if you enter a single quote - does
> anyone know what to put in this entry ? I tried { and it seemed to
> work but this is a strange requirement.


Sorry... Don't know anything about TOAD, and I may be way off base,
but with single quotes, you can escape them with a / (forward slash?),
and they will be accepted into mysql.

Hope some of that helps,

Nino

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:20 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com