If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Unreadable output to monitor

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-07-04, 20:32
BEC BEC is offline
Registered User
 
Join Date: Mar 2004
Posts: 2
Unreadable output to monitor

Hey guys,

I'm taking a MySQL class. For a project, I constructed a table with quite a few columns. Outputting the entire table to the screen produces a nearly-unreadable display; the rows basically "wrap" themselves to fit the screen, thus becoming a garbled mess. Is there a way to correct this with a MySQL command, or is this a fault of the server hosting MySQL?

Thanks much!
Reply With Quote
  #2 (permalink)  
Old 03-08-04, 03:19
aus aus is offline
Registered User
 
Join Date: Oct 2003
Location: Denver, Colorado
Posts: 137
Re: Unreadable output to monitor

When concluding your query, use \G instead of ;
For instance:
Code:
SELECT * FROM table1\G
This is formated with each field on a new line instead of columnar.
Reply With Quote
  #3 (permalink)  
Old 03-08-04, 20:18
BEC BEC is offline
Registered User
 
Join Date: Mar 2004
Posts: 2
Thanks!! Very helpful!!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On