MySQL查询数据库中没有主键的表select table_schema,table_name from information_schema.tables
where (table_schema,table_name) not in(
select distinct table_schema,table_name from information
hive mysql中没有表的原因hive mysql中没有表是因为hive是用来将sql语句转化为mapreduce在hdfs中计算从而得到查询数据的工具,而mysql存储的是hive中自己定义的表,所以mysql看得见的表是hive本身存在的