Surya Prakash Tumma
Surya Prakash Tumma

Reputation: 2193

How to show all tables with column header as "Text" in mysql

I am trying to show all tables in mysql I have used the following command.

 show tables;`

enter image description here

I don't want to display db name in the column header.How to display with "Text" as column header in mysql

Upvotes: 0

Views: 137

Answers (2)

spencer7593
spencer7593

Reputation: 108370

You could use a query against the information_schema database, like this:

SELECT t.table_name AS `Text`
  FROM information_schema.tables t
 WHERE t.table_schema = 'extdirectnode'
 ORDER BY t.table_name

Upvotes: 1

Abhik Chakraborty
Abhik Chakraborty

Reputation: 44844

You can use information_schema for this.

SELECT 
table_name from information_schema.tables where 
table_schema = 'extdirectnode';

Upvotes: 1

Related Questions