LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[OT] Re: [ILUG] Oracle question

[OT] Re: [ILUG] Oracle question

Josh Glover jmglov at gmail.com
Sat May 27 05:15:28 IST 2006


On 26/05/06, Paschal Nee <paschalnee at gmail.com> wrote:

> So are you taking about the client itself.  For example running the mysql
> client with the --vertical attribute
>
> mysql --vertical -u root -p

You can also do this on a statement-by-statement basis with the MySQL
client. If you terminate a SQL statement with \G (that is, a literal
backslash character, followed by an uppercase G), you get vertical
output. For example:

mysql> select * from categories;
+--------+----------------------+--------+
| cat_id | cat_name             | status |
+--------+----------------------+--------+
|      1 | Web Browsers         |      1 |
|      2 | Perl                 |      1 |
+--------+----------------------+--------+
2 rows in set (0.07 sec)

mysql> select * from categories\G
*************************** 1. row ***************************
  cat_id: 1
cat_name: Web Browsers
  status: 1
*************************** 2. row ***************************
  cat_id: 2
cat_name: Perl
  status: 1
2 rows in set (0.00 sec)


Cheers,
Josh


More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell