Solved

column heading in mysql

Posted on 2010-09-21
3
532 Views
Last Modified: 2012-08-14
I would like to know if there is a way to run a query in mysql and have it return the results without the column names.  I am wanting this to be inside the mysql api so I don't have to exit out, then enter mysql with the flag to turn off column headings, then log out of mysql and then log back in with the flag to turn column headings back on.
0
Comment
Question by:navajo26354
3 Comments
 
LVL 8

Expert Comment

by:wolfgang_93
ID: 33728078
Instead of appending a ";" symbol, append \G
Example:
  select * from fubar\G

You won't get column headers, but your output format
changes a bit as well.
0
 
LVL 7

Accepted Solution

by:
haijerome earned 500 total points
ID: 33732590
Hi,

     Here's the one exactly what do you need... Kindly go through the links below

       http://dev.mysql.com/doc/refman/5.1/en/mysql-command-options.html#option_mysql_skip-column-names

http://www.justskins.com/forums/select-answer-without-field-99696.html

http://souptonuts.sourceforge.net/readme_mysql.htm

These two option are the key for what do you need



 --silent and --skip-colum-names


Eg : mysql --skip-column-names -u username ....


                    If it helps then its cool else let me know... :-)

Regards,Jerome Dennis D

0
 

Author Closing Comment

by:navajo26354
ID: 33736081
This was exactly what I needed, thank you
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In this article, I will by showing a nice little trick for MySQL similar to that of my previous EE Article for SQLite (http://www.sqlite.org/), A SQLite Tidbit: Quick Numbers Table Generation (http://www.experts-exchange.com/A_3570.htm…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question