Solved

column heading in mysql

Posted on 2010-09-21
3
531 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

A lot of articles have been written on splitting mysqldump and grabbing the required tables. A long while back, when Shlomi (http://code.openark.org/blog/mysql/on-restoring-a-single-table-from-mysqldump) had suggested a “sed” way, I actually shell …
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
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…

776 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