ON DUPLICATE KEY UPDATE 主要实现了一个insert sql 的save or update。但是当是两个唯一主键的时候是有性能问题及隐患,这个下面会解释。 一:背景前要 首先看下面的sql 是一个mybatis xml中使用case when 函数,这个我着实第一次学习我(谁让本宝宝才疏学...
在初始化hive时出现这个错误: Error: Duplicate key name 'PCS_STATS_IDX' (state=42000,code=1061) org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization FAILED! Metastore state would be inconsistent !! Underlying cau...