Solved

column heading in mysql

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Foreword In the years since this article was written, numerous hacking attacks have targeted password-protected web sites.  The storage of client passwords has become a subject of much discussion, some of it useful and some of it misguided.  Of cou…
More Fun with XML and MySQL – Parsing Delimited String with a Single SQL Statement Are you ready for another of my SQL tidbits?  Hopefully so, as in this adventure, I will be covering a topic that comes up a lot which is parsing a comma (or other…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

706 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now