Mysql 不像蜂巢里的陈述
在Mysql 不像蜂巢里的陈述,mysql,hive,Mysql,Hive,在mysql中,我使用以下语句在数据库中查找表与不同 show tables where `Tables_in_db` not like '%_table' 我可以使用下面的语句在hive中查找表like show tables like '*table' 但无法使用不相似的语句 show tables where `Tables_in_db` not like '*_table' 在Hive中是否有此语句的等效项 可以使用以下选项: 在SQL中: select * from table
mysql
中,我使用以下语句在数据库中查找表与不同
show tables where `Tables_in_db` not like '%_table'
我可以使用下面的语句在hive中查找表like
show tables like '*table'
但无法使用不相似的语句
show tables where `Tables_in_db` not like '*_table'
在Hive
中是否有此语句的等效项 可以使用以下选项:
在SQL中:
select * from tableName where columnName not like '%something%';
在蜂箱中:
select * from tableName where not (columnName like '%something%');
希望有帮助。查询metastore@DuduMarkovitz我们没有hive
metastore,当然你没有。您认为show tables
显示的信息用于何处?。检查参数javax.jdo.option.ConnectionURL
。最初的问题似乎是关于在配置单元show tables
语句中使用not like
,而不是select
语句。我认为,最初的观点是:像'abc'一样显示表格
有效,但是像'abc'一样显示表格
无效。有什么想法吗?