Display the table structured output for empty results of the queries mysql

Viewed 51

I am executing a MySql query in MySql command prompt. And I have a MySQL query which returns an empty result set. When the result set is not empty, the results will be automatically displayed in a table structured manner.

result set output

But when the result set is empty, a message called "Empty set" will be displayed to the user.

I want the above shown table structure to be displayed even for empty result sets. How could I achieve this in MySQL?

0 Answers
Related