Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get all tables and column names in SQL?

Tags:

sql

I want a list of table names and columns within that table (see below). Is there a SQL query that would allow me to do this within a schema?
Result I want
I know I can look at the GUI interface to look at the table names and columns but there are too many to look at manually.

like image 765
Jan Avatar asked Feb 27 '18 16:02

Jan


1 Answers

however your question isn't enough clear but you can get all of it with this this code

SELECT * FROM INFORMATION_SCHEMA.COLUMNS
like image 159
Ari Avatar answered Sep 22 '22 07:09

Ari