MySQL Forums
Forum List  »  General

Re: Unable to run 'delimiter' command
Posted by: Nick Roper
Date: July 30, 2004 01:46AM

Vish,

> I can not isssue 'delimiter' command.

I assume that you are trying to create an output file with fields delimited by a specified character? The MySQL syntax is:

SELECT (columns) INTO OUTFILE '/path/to/filename'
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
FROM tables
WHERE conditions;

The FIELDS TERMINATED BY ',' option is where you would specify the delimiter.

See http://dev.mysql.com/doc/mysql/en/SELECT.html for more details.

> Also,I can not compile procedure using 'SOURCE' command. It say 'You have
an error in SQL syntax.......'

Err, you have an error in your SQL statement then ;-)

can you post the statements in the procedure that you refer to?








--
Nick Roper

Options: ReplyQuote


Subject
Written By
Posted
Re: Unable to run 'delimiter' command
July 30, 2004 01:46AM
February 21, 2005 11:16AM
March 20, 2005 07:08PM


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.