- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How can I display MySQL query result vertically?
With the use of ego, \G option at end of a statement, we can get the result set in vertical format. Consider the following example −
mysql> Select * from Student where name = 'Aarav'\G *************************** 1. row *************************** Name: Aarav RollNo: 150 Grade: M.SC 1 row in set (0.00 sec)
- Related Articles
- How do I split a numerical query result in MySQL?
- How can you order the result obtained by select query in MySQL?
- How can I stop running a MySQL query?
- How can I stop a running MySQL query?
- How to display records vertically in MySQL command line?
- How can I enable MySQL slow query log without restarting MySQL?
- How can I achieve similar result like using a loop in MySQL WHERE clause to display only alternate ID records?
- Display substrings of different length with a single MySQL query and combine the result
- How can I make my layout scroll vertically?
- How can I vertically align elements in a div?
- MySQL query to count the duplicate ID values and display the result in a separate column
- MySQL query to count occurrences of distinct values and display the result in a new column?
- How to store Query Result in a variable using MySQL?
- How can I make my layout scroll vertically in Android?
- How can I avoid too many OR statements in a MySQL query?

Advertisements