0 votes
1 view
in SQL by (41.9k points)
Can anyone tell me how do I view all tables in SQL?

1 Answer

0 votes
by (99.4k 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 in SQL by Sudhir_1997 (41.9k points)
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...