RE: How to show comments/annotations in MySQL client output

2004-07-28 Thread Richard Mixon (qwest)
Michael Stassen wrote: > Paul DuBois wrote: > >> At 15:57 -0400 7/27/04, Michael Stassen wrote: >> >>> First, I should point out that I've never used mysql on Windows. >>> >>> The manual makes no mention that I can see of system not being >>> supported on the Windows mysql client. On the other

Re: How to show comments/annotations in MySQL client output

2004-07-27 Thread Michael Stassen
Paul DuBois wrote: At 15:57 -0400 7/27/04, Michael Stassen wrote: First, I should point out that I've never used mysql on Windows. The manual makes no mention that I can see of system not being supported on the Windows mysql client. On the other hand, Windows is so different that I http://dev.my

Re: How to show comments/annotations in MySQL client output

2004-07-27 Thread Paul DuBois
At 15:57 -0400 7/27/04, Michael Stassen wrote: First, I should point out that I've never used mysql on Windows. The manual makes no mention that I can see of system not being supported on the Windows mysql client. On the other hand, Windows is so different that I http://dev.mysql.com/doc/mysql/e

Re: How to show comments/annotations in MySQL client output

2004-07-27 Thread Michael Stassen
First, I should point out that I've never used mysql on Windows. The manual makes no mention that I can see of system not being supported on the Windows mysql client. On the other hand, Windows is so different that I wouldn't be surprised if system is not supported. A simple test would be to s

RE: How to show comments/annotations in MySQL client output

2004-07-27 Thread Richard Mixon (qwest)
gt; From: Markus Grossrieder [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 27, 2004 9:49 AM > To: Michael Stassen > Cc: [EMAIL PROTECTED] > Subject: Re: How to show comments/annotations in MySQL client output > > > Michael, > > which version are you using ? I didn't

RE: How to show comments/annotations in MySQL client output

2004-07-27 Thread Richard Mixon (qwest)
[EMAIL PROTECTED] wrote: > Hi Richard, > > not exactly sure what you want but try using \G at the end of > the select > statements. > Also try using UNION. > e.g. > select "Put your comment here","" UNION select field1, field2 > from table1 > group by field 1 \G > > You may get something that will

Re: How to show comments/annotations in MySQL client output

2004-07-27 Thread Markus Grossrieder
, July 27, 2004 6:09 PM Subject: Re: How to show comments/annotations in MySQL client output > > One more thought: Your mention of echo jogged my memory. You can use SYSTEM > to pass what follows to the system and display the result. So, > >SYSTEM echo "## The

RE: How to show comments/annotations in MySQL client output

2004-07-27 Thread Richard Mixon (qwest)
Michael, Great idea, I can get it to work on SuSE Linux (SLES8 for AMD64) just fine: mysql> SYSTEM echo "Some comments" ; Some comments But on Windows XP (where my user is running that needs this function): mysql> SYSTEM echo Some comments ; -- SYSTEM echo Some comments --

Re: How to show comments/annotations in MySQL client output

2004-07-27 Thread Michael Stassen
ersion are you using ? I didn't find SYSTEM in the manual ... Thanks, Markus - Original Message - From: "Michael Stassen" <[EMAIL PROTECTED]> To: "Richard Mixon (qwest)" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, July 27, 2004 6:

Re: How to show comments/annotations in MySQL client output

2004-07-27 Thread Michael Stassen
One more thought: Your mention of echo jogged my memory. You can use SYSTEM to pass what follows to the system and display the result. So, SYSTEM echo "## The following output should only contain two rows."; results in ## The following output should only contain two rows. assuming echo is a

Re: How to show comments/annotations in MySQL client output

2004-07-27 Thread Michael Stassen
Richard Mixon (qwest) wrote: Harald Fuchs wrote: In article <[EMAIL PROTECTED]>, Michael Stassen <[EMAIL PROTECTED]> writes: Richard Mixon (qwest) wrote: I run some mysql command files (just SQL statements in a file I read from standard input) and need to place some annotiations/comments in the

RE: How to show comments/annotations in MySQL client output

2004-07-27 Thread PKeane
Hi Richard, not exactly sure what you want but try using \G at the end of the select statements. Also try using UNION. e.g. select "Put your comment here","" UNION select field1, field2 from table1 group by field 1 \G You may get something that will work for you by messing with these options

RE: How to show comments/annotations in MySQL client output

2004-07-27 Thread Richard Mixon (qwest)
Harald Fuchs wrote: > In article <[EMAIL PROTECTED]>, > Michael Stassen <[EMAIL PROTECTED]> writes: > >> Richard Mixon (qwest) wrote: > >>> I run some mysql command files (just SQL statements in a file I read >>> from standard input) and need to place some annotiations/comments >>> in the output. I

Re: How to show comments/annotations in MySQL client output

2004-07-27 Thread Harald Fuchs
In article <[EMAIL PROTECTED]>, Michael Stassen <[EMAIL PROTECTED]> writes: > Richard Mixon (qwest) wrote: >> I run some mysql command files (just SQL statements in a file I read >> from standard input) and need to place some annotiations/comments in the >> output. >> If I place standard SQL comm

Re: How to show comments/annotations in MySQL client output

2004-07-26 Thread Michael Stassen
Richard Mixon (qwest) wrote: I run some mysql command files (just SQL statements in a file I read from standard input) and need to place some annotiations/comments in the output. If I place standard SQL comments ("-- comment text") or MySQL comments ("# comment text") they do not show up in the mys