|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to get a list of tables in a database
I would like to get a list of the tables in a FireBird database. Like with 'show tables' in MySQL. How is this done in FireBird?
|
|
#2
|
|||
|
|||
|
Quote:
show table; |
|
#3
|
|||
|
|||
|
Quote:
When I do this I get: Token unknown: show But I found the answer: SELECT RDB$RELATION_NAME FROM RDB$RELATIONS WHERE RDB$SYSTEM_FLAG = 0 AND RDB$VIEW_BLR IS NULL ORDER BY RDB$RELATION_NAME Sorry for the bad layout, but I could not get indent and the like to work. |
|
#4
|
||||
|
||||
|
Quote:
Are you running it from ibeasy+ or other graphical client? It works fine from isql.
__________________
My blog Tutorials about OSS databases, DBMonster ... Contribute to OSS Development, fill bug reports! Developer Shed eSupport Commented my.ini/my.cnf (ADD YOUR OWN CONFIG TRICK) An introduction to database normalization Natural or Surrogate key Custom ordering for your results Correlated and uncorrelated subqueries Don't turn your outer joins into inner joins Random data (with a bias) |
|
#5
|
|||
|
|||
|
Quote:
I did it from Database Workbench. It should work as a normal SQL statement (as my solution does), because it needs to be done from within a program. |
![]() |
| Viewing: Dev Shed Forums > Databases > Firebird SQL Development > How to get a list of tables in a database |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|