"Thompson, Jordan" <[EMAIL PROTECTED]> wrote: > I wan to use a variable for the outfile file name in a select into clause. I am > doing something like: > > set @fileName="/tmp/result.text" > SELECT col1, col2 INTO OUTFILE @fileName > FIELDS TERMINATED BY ',' > FROM test_table; > > the interpreter dies at the @fileName... > if I exchange @filename with "/tmp/result.text" it runs fine.
You can't use variables in such manner. -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Victoria Reznichenko / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]