SELECT..INTO OUTFILE - ERROR 1086 (HY000)
Posted by: Ernie Lacson
Date: February 26, 2009 07:28PM

Hi,

When I try the following, the query runs for the first time, then in subsequent runs mysql, reports that the file already exists. I check the directory but the file does not exist. What's going on here? THanks in advance for your help.

mysql> SELECT acct,pers,mac,ip,since,last,lobbycount,lobbysecs,gamecount,gamesecs,
-> passivesecs,foreign_uid,hwflag,hwmask
-> INTO OUTFILE '/tmp/ernie_test.out'
-> FIELDS TERMINATED BY ','
-> LINES TERMINATED BY '\n'
-> FROM metrics.TODAYS_SNAPSHOT;
ERROR 1086 (HY000): File '/tmp/ernie_test.out' already exists
mysql> exit
Bye
[mysql@eandba2 dbscripts]$ ls -lrt /tmp/ernie_test.out
ls: /tmp/ernie_test.out: No such file or directory

Options: ReplyQuote


Subject
Written By
Posted
SELECT..INTO OUTFILE - ERROR 1086 (HY000)
February 26, 2009 07:28PM


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.