Solved

column heading in mysql

Posted on 2010-09-21
3
535 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mysql date time 14 52
Mysql Left Join Case 10 115
MySQL Sub-Select Query Returning Duplicate Result 7 63
Complex MySQL Query 2 49
This guide whil teach how to setup live replication (database mirroring) on 2 servers for backup or other purposes. In our example situation we have this network schema (see atachment). We need to replicate EVERY executed SQL query on server 1 to…
In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

752 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