How to write output of sql stmt to file

2002-06-04 Thread andy
Hi there, I am trying to get only records out of a table mathing a query. This should be piped into a textfile. My problem is that I have to transmit this records to a new machine. So the output should be a kind of sql commands which I could run with phpadmin or similar to import them to the

RE: How to write output of sql stmt to file

2002-06-04 Thread Jay Blanchard
[snip] I am trying to get only records out of a table mathing a query. This should be piped into a textfile. My problem is that I have to transmit this records to a new machine. So the output should be a kind of sql commands which I could run with phpadmin or similar to import them to the other

Re: How to write output of sql stmt to file

2002-06-04 Thread Gerald Clark
Did you check out the -w option to mysqldump? andy wrote: Hi there, I am trying to get only records out of a table mathing a query. This should be piped into a textfile. My problem is that I have to transmit this records to a new machine. So the output should be a kind of sql commands which I

Re: How to write output of sql stmt to file

2002-06-04 Thread Ralf Narozny
Jay Blanchard wrote: [snip] I am trying to get only records out of a table mathing a query. This should be piped into a textfile. My problem is that I have to transmit this records to a new machine. So the output should be a kind of sql commands which I could run with phpadmin or similar to