Click here to get back home

importing nonprintable delimiters with mysql ?

 HomeNewsGroups | Search | About
 mailing.database.mysql    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
importing nonprintable delimiters with mysql ? Jack 01-29-2007
Get Chitika Premium
Posted by Jack on January 29, 2007, 8:44 pm
Please log in for more thread options
Hi I was wondering if someone could reply with a command from the
mysql client that I can issue which will import a flat file have 2
columns and a 034 octal (decimal 28, hex 1C) as the delimiting value.
I have not been able to find a mysqlimport command that will work.. I
tried this but no luck:

mysqlimport instinct --fields-terminated-by= '1C' --fields-enclosed-
by='\n' 'e:\TISS1b.txt';

Thanks,

Jack


Posted by Carl Pearson on January 30, 2007, 8:30 am
Please log in for more thread options
Jack wrote:
> Hi I was wondering if someone could reply with a command from the
> mysql client that I can issue which will import a flat file have 2
> columns and a 034 octal (decimal 28, hex 1C) as the delimiting value.
> I have not been able to find a mysqlimport command that will work.. I
> tried this but no luck:
>
> mysqlimport instinct --fields-terminated-by= '1C' --fields-enclosed-
> by='\n' 'e:\TISS1b.txt';
>
> Thanks,
>
> Jack
>
Try doing it directly from the mysql prompt with 'load data infile':

        http://dev.mysql.com/doc/refman/4.1/en/load-data.html

Similar ThreadsPosted
Importing MySQL in MS Access January 31, 2006, 11:23 pm
error importing old mysql db March 1, 2006, 3:15 pm
importing sql statements November 10, 2005, 11:15 pm
Importing with phpMyAdmin February 8, 2007, 9:40 pm
importing data from textfile August 11, 2005, 8:17 pm
Importing chinese characters July 10, 2006, 4:36 am
Importing XML into multiple tables? July 11, 2006, 5:02 am
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' January 12, 2006, 9:26 pm
Problem with accent Import to MySQL/Linux from MySQL Windows September 4, 2005, 1:54 am
MySQL variables, modifying Microsoft SQL sequence insert for use in mysql October 7, 2005, 10:54 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap