最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

kql - Find all table with multiple columns name criteria - Stack Overflow

programmeradmin1浏览0评论

Through query page, I can search all tables where column == "something". Seems we're not able to make AND/OR from UI. So, I would like to know if there is a KQL query that can let search accross tables about column names with multiple criteria. Example : Finding all table where it contains one column named "Customer_ID" and one column named "mail" Thanks :)

Through query page, I can search all tables where column == "something". Seems we're not able to make AND/OR from UI. So, I would like to know if there is a KQL query that can let search accross tables about column names with multiple criteria. Example : Finding all table where it contains one column named "Customer_ID" and one column named "mail" Thanks :)

Share Improve this question asked Jan 29 at 9:23 PierrotPierrot 191 silver badge4 bronze badges 1
  • Could you share what you have tried? – Balaji Commented Jan 29 at 12:24
Add a comment  | 

1 Answer 1

Reset to default 0

I found the solution:

show database *db_name* schema 
| where ColumnName contains "xxx" or ColumnName contains "yyy" 
| summarize make_list(ColumnName) by TableName 
| where list_ColumnName contains "xxx" and list_ColumnName contains "yyy" 
发布评论

评论列表(0)

  1. 暂无评论