我在postgresql中创建了一个表:
create table retail_fact( id serial not null, name text);
我有客户表在hive和MySQL中,我想从他们加载数据到PostgreSQL retail_fact表使用Pentaho pdi (通过presto连接)。
另外,当我用Hive和MySQL中的数据加载表时,o希望id在Postgres中自动递增(用更简单的术语。我需要一个sql查询来做同样的事情)。
查询类似于以下内容:
insert into postgresql.rpt.order_fact(
select name from h