如何从Firebird数据库获取表列表? [英] How do I get a list of tables from a Firebird database?
本文介绍了如何从Firebird数据库获取表列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所以我有几个需要转换的Firebird数据库.我已经设法使用python代码和kinterbasdb库连接到它们,但是我找不到找到数据库中所有表的列表的方法.有没有可以给我表名的命令?
So I've got a couple of Firebird databases I need to convert. I've managed to connect to them using python code and the kinterbasdb library, but I can't find a way to get a list of all the tables in the database. Is there a command that will give me the table names?
推荐答案
获取表列表是:
-
在isql中:
show tables;
作为常规查询:
SELECT a.RDB$RELATION_NAME
FROM RDB$RELATIONS a
WHERE COALESCE(RDB$SYSTEM_FLAG, 0) = 0 AND RDB$RELATION_TYPE = 0
这篇关于如何从Firebird数据库获取表列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文