MySQL Forums
Forum List  »  Newbie

Turning a query result sideways? (printing-wise)
Posted by: Bob Seger
Date: November 17, 2011 01:21PM

Let's say I have a table with columns ID, first_name, last_name, street_address, city, state, zip, etc.

Is there a SQL query trick (in the command line client) that will print a query like "SELECT * FROM some_table WHERE ID = 12345" like this:

ID: 12345
first_name: Bob
last_name: Johnson
street_address: 123 Someplace Ave
City: Wyoming
State: MI
Zip: 49509

In other words, column headers on the left.

Options: ReplyQuote


Subject
Written By
Posted
Turning a query result sideways? (printing-wise)
November 17, 2011 01:21PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.