Is there anyway within a mysql batch script to make individual statements silent? For example, if I have a script like: select @t1:=desc from decode_table where id=42; select @t2:=desc from decode_table where id=64; select concat('the msg is ',ifnull(@t1,42),' part two is ',ifnull(@t2,64));
I just want the result of the last line to go to stdout, but all three lines go. So I end up having to trick it up with a last line like: select concat('##the msg is ',ifnull(@t1,42),' part two is ',ifnull(@t2,64)); and piping that to grep/sed to get my desired result (grep ^## | sed 's/^##//') So - is there anyway to do selective select silence? Or am I stuck with my tricked up version? tia, R --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <mysql-unsubscribe-##L=##[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php