The syntax provided in this article works only for SQL Server and MySQL.

If you want to know how many tables are present in your database and the details of the like _SCHEMA, _TYPE and all.




1. INFORMATION_SCHEMA views allow you to retrieve metadata about the objects within a database. These views can be found in the master database under Views / System Views and be called from any database in your SQL Server instance.

2. INFORMATION_SCHEMA.TABLES The INFORMATION_SCHEMA.TABLES view allows you to get information about all tables and views within a database.

- 2 61 - How to Get the names of the table in SQL
- 3 62 - How to Get the names of the table in SQL

- avatar - How to Get the names of the table in SQL

If you like GeeksforGeeks and would like to contribute, you can also write an article using or mail your article to See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Please write to us at to report any issue with the above content.

Source link


Please enter your comment!
Please enter your name here