Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ssis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Postgresql 在SSIS中更新postgres表_Postgresql_Ssis_Oledb_Oledbcommand - Fatal编程技术网

Postgresql 在SSIS中更新postgres表

Postgresql 在SSIS中更新postgres表,postgresql,ssis,oledb,oledbcommand,Postgresql,Ssis,Oledb,Oledbcommand,我对这一点很陌生: 我的目标是一个postgres表,我想根据另一个sql server表的列值(当postgres_table.a=sqlserver_table.b时)更新两个字段(col1,col2) 我知道这可以通过使用OLEDB命令轻松实现,但是,由于我的目标表是我使用ODBC连接的postgres表,因此OLEDB命令在这种情况下不起作用 对此有什么想法吗?这有点老套,但是使用Foreach循环并执行SQL任务怎么样 因此,首先将值读入一个对象变量(为此使用executeSQL-ta

我对这一点很陌生:

我的目标是一个postgres表,我想根据另一个sql server表的列值(当postgres_table.a=sqlserver_table.b时)更新两个字段(col1,col2)

我知道这可以通过使用OLEDB命令轻松实现,但是,由于我的目标表是我使用ODBC连接的postgres表,因此OLEDB命令在这种情况下不起作用


对此有什么想法吗?

这有点老套,但是使用Foreach循环并执行SQL任务怎么样

因此,首先将值读入一个对象变量(为此使用executeSQL-tas)。然后将该变量用作Foreach循环的源,并在循环内使用另一个executesql-task向Postgres发送具有正确值的更新