Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql 搜索数据库中包含字段的所有表_Sql - Fatal编程技术网

Sql 搜索数据库中包含字段的所有表

Sql 搜索数据库中包含字段的所有表,sql,Sql,在使用Business Objects 6.5时,我希望搜索环境中的所有表,以查找包含feild“POID”的表。如果您有权访问存储库表,则可以使用此查询来搜索所有域中包含指定字段名的所有表: select u.uni_longname, t.tab_name, c.column_name, from unv_table t, unv_columns c, unv_universe u where t.table_id = c.table_

在使用Business Objects 6.5时,我希望搜索环境中的所有表,以查找包含feild“POID”的表。

如果您有权访问存储库表,则可以使用此查询来搜索所有域中包含指定字段名的所有表:

select
    u.uni_longname,
    t.tab_name,
    c.column_name,
from
    unv_table t,
    unv_columns c,
    unv_universe u
where
    t.table_id = c.table_id
    and t.universe_id = c.universe_id
    and u.universe_id = t.universe_id
    and t.column_name = 'xxxxxx'

如果您没有访问存储库表的权限,我只需将universe导出为PDF(文件->在Designer中导出),然后只需在PDF中搜索字段。

您想要数据库中包含特定字段名的所有表吗?哪个数据库管理系统?我使用的是旧版本的业务对象。我知道我可以使用“select*from[table_name]查找表中的所有字段,但现在我想查找宇宙中所有具有feld“POID”的表。您要查找的是[This][1]吗?尊敬的Praveen[1]: