use*_*089 5 postgresql pgadmin postgresql-9.1
在我的公共模式中,我有1200个表.在一个或多个表中的某个地方有一些名为LIKE" active "的字段,如: - status_active - hr_active - who_knows_what_active_could_be
我想在控制台中使用PGAdmin或通过控制台上的普通客户端找到它们,我怎么能用更少的资源快速完成这项工作?
mur*_*son 14
尝试:
SELECT *
FROM information_schema.columns
WHERE TRUE
AND table_schema = 'public'
AND column_name ~* 'active'
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
13699 次 |
| 最近记录: |