Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (55.6k points)
Can anyone tell me how do I view all tables in SQL?

1 Answer

0 votes
by (119k points)

Here is the query to view all the tables of the currently connected database

SELECT * FROM information_schema.tables;

The following query can be used to show only tables from a particular database

SELECT TableName

FROM <Database_NAME>.INFORMATION_SCHEMA.TABLES

WHERE TABLE_TYPE = 'BASE TABLE'

In case you are interested in SQL, then sign up for this SQL training course by Intellipaat that provides self-paced videos, instructor-led training, and also certification along with hands-on experience.

Also, watch this video on SQL to understand more:

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Apr 26, 2020 in SQL by Sudhir_1997 (55.6k points)
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...