Hi,
What is the SQL command to show all table of a DataBase?
Thanks, in advance.
SQL command to show table
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Datta KharadRank #2,135 · 668 reputationPosted Dec 19, 2011, 7:45 PM EST
If you do not have access to DBA_TABLES, you can see all the tables that your account has access to through the ALL_TABLES view
SELECT owner, table_name
FROM all_tables
if you are only concerned with the tables that you own, not those that you have access to, you could use USER_TABLES
SELECT table_name
FROM user_tables
OR
SELECT * FROM tab;
For SQL Server
select * from information_schema.tables;
Prabhu RajaRank #861 · 2.6K reputationPosted Dec 19, 2011, 8:03 PM EST
Use YourDatabaseName
Go
Select * From sys.Tables
Go
Vikrant Jadhav64 reputationPosted Dec 19, 2011, 8:59 PM EST
select * from SampleDB.sys.tables;
Above Query returns the all tables name from database named SampleDB.
Thanks & Regards
Vikrant Jadhav
Please mark as Correct answer if above post is helpful to you.
Jignesh TrivediRank #16 · 50.3K reputationPosted Jan 4, 2012, 9:40 PM EST
all above post is correct, I want add one more talbe from you get information about table, sp, system table ect..
select * from sys.all_objects where type_desc = 'USER_TABLE'
hope this help.