MySQL Forums
Forum List  »  Stored Procedures

Re: String manipulation and RIGHT() Problem
Posted by: Jay Pipes
Date: November 22, 2005 06:33PM

Why are you reinventing the wheel like this? Why not just use LOAD DATA INFILE, passing in a line terminator of '@' and a field terminator of '|'? Seems like a lot of effort for functionality that is already in MySQL?

Something like:

LOAD DATA INFILE 'sometext.txt'
INTO my_table
FIELDS TERMINATED BY '|'
LINES TERMINATED BY '@';

SELECT * FROM my_table;

Jay Pipes
Community Relations Manager, North America, MySQL Inc.

Got Cluster? http://www.mysql.com/cluster
Personal: http://jpipes.com

Options: ReplyQuote


Subject
Views
Written By
Posted
5680
November 20, 2005 08:43AM
Re: String manipulation and RIGHT() Problem
2469
November 22, 2005 06:33PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.