Re: select ... into local outfile ... ???

2011-09-03 Thread Hal�sz S�ndor
2011/09/03 03:40 +0800, Dennis But it seems that there is no "select ... into LOCAL file" statement. Any suggestion is appreciated. Indeed: you can use only standard output. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http

Re: select ... into local outfile ... ???

2011-09-03 Thread Dennis
Thanks, Tyler,  That's very helpful. Dennis --- On Sat, 9/3/11, Tyler Poland wrote: From: Tyler Poland Subject: Re: select ... into local outfile ... ??? To: mysql@lists.mysql.com Date: Saturday, September 3, 2011, 3:45 AM Dennis, The following closely simulates the default "IN

Re: select ... into local outfile ... ???

2011-09-02 Thread Tyler Poland
Dennis, The following closely simulates the default "INTO OUTFILE", you'll have to modify it slightly for your purposes: mysql --delimiter=comma -N < select_statement.sql \ | sed 's/\"/\\\"/g' \ | sed 's/\t/\",\"/g' \ | sed 's/$/\"/g' \ | sed 's/^/\"/g' \ | sed 's/\"NULL\"/\\N/g' \

select ... into local outfile ... ???

2011-09-02 Thread Dennis
hi, there, the following is my sql statement: SELECT   HIGH_PRIORITY   SQL_BIG_RESULT   SQL_NO_CACHE   tb.url_sign,  m_url,    m_title,   m_weight    INTO OUTFILE   '/tmp/a.csv'  FIELDS TERMINATED BY ','  ENCLOSED BY '\"'   LINES  TERMINATED BY '\n' STARTING BY '=' FROM d_lo

Re: INTO LOCAL OUTFILE?

2003-03-16 Thread Don Read
On 16-Mar-2003 Tim Johnson wrote: > Hi Paul: > * Paul DuBois <[EMAIL PROTECTED]> [030316 09:59]: >> At 9:14 -0900 3/16/03, Tim Johnson wrote: >> >Hello All: >> >I am using Ver 11.15 Distrib 3.23.41, for redhat-linux-gnu (i386) >> > >> >

Re: INTO LOCAL OUTFILE?

2003-03-16 Thread Paul DuBois
At 10:34 -0900 3/16/03, Tim Johnson wrote: Hi Paul: * Paul DuBois <[EMAIL PROTECTED]> [030316 09:59]: At 9:14 -0900 3/16/03, Tim Johnson wrote: >Hello All: >I am using Ver 11.15 Distrib 3.23.41, for redhat-linux-gnu (i386) > > I believe that INTO LOCAL OUTFILE is no

Re: INTO LOCAL OUTFILE?

2003-03-16 Thread Tim Johnson
Hi Paul: * Paul DuBois <[EMAIL PROTECTED]> [030316 09:59]: > At 9:14 -0900 3/16/03, Tim Johnson wrote: > >Hello All: > >I am using Ver 11.15 Distrib 3.23.41, for redhat-linux-gnu (i386) > > > >I believe that INTO LOCAL OUTFILE is not implemented, but >

Re: INTO LOCAL OUTFILE?

2003-03-16 Thread Paul DuBois
At 9:14 -0900 3/16/03, Tim Johnson wrote: Hello All: I am using Ver 11.15 Distrib 3.23.41, for redhat-linux-gnu (i386) I believe that INTO LOCAL OUTFILE is not implemented, but all the same, I would like to save a selection set into a local output (text) file. Can someone suggest a

INTO LOCAL OUTFILE?

2003-03-16 Thread Tim Johnson
Hello All: I am using Ver 11.15 Distrib 3.23.41, for redhat-linux-gnu (i386) I believe that INTO LOCAL OUTFILE is not implemented, but all the same, I would like to save a selection set into a local output (text) file. Can someone suggest a way to use mysqldump to do the same