如何使用不像在配置单元中的显示表?
我正在尝试将所有表格中的所有表获取不像特定关键字的数据库。 我能够使用类似功能,但无法在
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该查询 Hive 元存储来支持这一点。
否则,尝试将输出通过管道传输到 grep
You should query your Hive metastore to support this.
Otherwise, try to pipe the output to grep