mysql - 如何在所有表 postgress 中找到一个值
问题描述
假设有这个词 'student' ,我需要返回所有包含 'student' 词的表。我需要这样的东西:
select *
from information_schema.tables t
where column ='student';
任何人都可以帮助我吗?
解决方案
如果你想要表格,你会使用:
select *
from information_schema.tables t
where table_name like '%student%';
如果您想要columns,您将使用正确的元数据表并使用:
select *
from information_schema.columns c
where column_name like '%student%';
推荐阅读
- jquery - requirejs jquery和boostrap加载顺序
- chart.js - Chart.js - 增加底部图例和图表之间的间距
- ios - 如何以编程方式在 UITableViewCell 中添加 UIView?
- user-registration - 无网络热点注册
- css - 将 SASS 变量设置为 CSS3 变量会导致 Bootstrap 4 中的错误
- swift - 带有持续时间 xib 的 Swift 动画
- qt - 使用特定的 openssl 版本构建 Qt
- html - 为什么列宽被破坏?
- marklogic - eval端点:设置模块数据库
- sql-server - 如何将 .net MVC 项目及其数据库从本地主机部署到实时托管