Subject | Re: [firebird-support] Re: a few How To......s |
---|---|
Author | Martijn Tonies |
Post date | 2007-04-19T07:55:38Z |
Hi,
you tell it to attach to them.
Selecting from system tables is no problem, it's done in many systems.
If you're scared, just create this view :-)
CREATE VIEW ALL_TABLES AS
select * from rdb$relations where rdb$view_blr is null
and rdb$system_flag is null or rdb$system_flag = 0
and it will look just like Oracle ;)
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
> > You can only get users logged in into a specific databaseCorrect, Firebird doesn't know about datafiles unless
> > by using the Services API.
>
> This means that one cannot also get thelist of all the databases
> present on the DataServer (this is separate computer).
you tell it to attach to them.
> > by issueing:What would "Tab" be in this case? I'm telling you, it's RDB$RELATIONS.
> > select * from rdb$relations where rdb$view_blr is null
> > and rdb$system_flag is null or rdb$system_flag = 0
>
> This means I will have to mess with SystemTable for this. That is a
> bit frightning for me as I am a beginner in FB.
>
> Isn't there SQL Select facility like 'SELECT * FROM Tab' to retrive a
> list of all the Tables in a database?
Selecting from system tables is no problem, it's done in many systems.
If you're scared, just create this view :-)
CREATE VIEW ALL_TABLES AS
select * from rdb$relations where rdb$view_blr is null
and rdb$system_flag is null or rdb$system_flag = 0
and it will look just like Oracle ;)
> See rdb$relation_fieldsSee above. The system tables is where all the info is.
> >
>
> Again it is frightining to mess with System Table.
>
> I think there should be some facility for retriving the complete
> Schema of a Database.
> Does any know of any such Undocumented function or has any created anyUDFs cannot return resultsets.
> UDF for this?
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com