| Subject | Re: [firebird-support] Display all tables | 
|---|---|
| Author | Martijn Tonies | 
| Post date | 2006-01-04T12:38:09Z | 
Hello Andi,
database.
Tables and Views can be found in RDB$RELATIONS --
Tables:
select *
from rdb$relations
where rdb$view_blr is null
Views:
select *
from rdb$relations
where rdb$view_blr is not null
Filter system tables by doing:
and rdb$system_flag is null or rdb$system_flag = 0
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL
Server
Upscene Productions
http://www.upscene.com
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
            > What's the SQL Command (with select command) to display all tablesAll this info is available in the system tables, contained in each Firebird
> on the database?
database.
Tables and Views can be found in RDB$RELATIONS --
Tables:
select *
from rdb$relations
where rdb$view_blr is null
Views:
select *
from rdb$relations
where rdb$view_blr is not null
Filter system tables by doing:
and rdb$system_flag is null or rdb$system_flag = 0
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL
Server
Upscene Productions
http://www.upscene.com
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com