How can i get all the table names from a databse ?

  • Thread starter Thread starter ¹ùÑÇ·æ
  • Start date Start date
¹

¹ùÑÇ·æ

in my app, i need to fetch all the table names in a database ,which SQL
statements i can use ?

Thanks for any advices !

Albert Guo
Jiangsu ,China PRC
---------------------------------------------
 
For MSSQL:

select name from sysobjects where type = 'U'
or
select table_name from information_schema.tables where table_type = 'BASE
TABLE'

For other RDBMS - check their documentation.


Arild
 
Back
Top