【发布时间】:2019-12-29 23:46:20
【问题描述】:
我想使用 SSIS 将数据从 postgres DB 复制到 SQL Server。我已经使用数据流并成功了。但是这次我想在查询中使用参数日期。
例如:
SELECT *
FROM dw_sales
WHERE transaction_date >= current_date - 7
我想在 SSIS 中使用参数@fromdate 替换 current_date - 7,所以查询将是
SELECT *
FROM dw_sales
WHERE transaction_date >= current_date - @fromdate
如果我在 SQL Server 中使用存储过程,我知道该怎么做,但是当我从 Postgres 复制数据时,我不知道怎么做。
你们能帮帮我吗?
【问题讨论】:
标签: sql sql-server postgresql ssis etl