如何使用不像在配置单元中的显示表?

发布于 2025-01-21 02:20:00 字数 262 浏览 1 评论 0原文

我正在尝试将所有表格中的所有表获取不像特定关键字的数据库。 我能够使用类似功能,但无法在

 show tables like '*student*';

上面的显示表中使用不像“查询”是否有效的

show tables not like '*student*'
 and '*employee*'; 

查询不起作用。

有人可以帮助我进行上述查询,并告诉我为什么它不起作用

I'm trying to get all tables in a database which are not like specific key words.
i'm able to use like function but not able to use not like in show tables

 show tables like '*student*';

above query is working

show tables not like '*student*'
 and '*employee*'; 

second query is not working.

can some one help me with the above query and tell me why it is not working

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

原来分手还会想你 2025-01-28 02:20:00

您应该查询 Hive 元存储来支持这一点。

否则,尝试将输出通过管道传输到 grep

hive -e "show tables" | grep -v student

You should query your Hive metastore to support this.

Otherwise, try to pipe the output to grep

hive -e "show tables" | grep -v student
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文