Norway


The syntax provided in this article works only for 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.

Syntax:

SELECT * FROM INFORMATION_SCHEMA.TABLES 

WHERE

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.

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

Example:
- 2 61 - How to Get the names of the table in SQL
Output:
- 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 contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. 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 contribute@geeksforgeeks.org to report any issue with the above .




Source link

LEAVE A REPLY

Please enter your comment!
Please enter your name here