加载目标表

发布于 2024-09-25 05:28:53 字数 64 浏览 0 评论 0原文

如果假设我有七个记录的源,前三个记录必须进入 3 个目标实例,而第四个记录又必须进入第一个目标,我怎样才能实现它?

If suppose I have source with seven records from that first three must go in 3 target instances and 4th record again have to go into first target how can I achieve it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

天暗了我发光 2024-10-02 05:28:53

这是实现此结果的一种方法。

PowerCenter mapping

我使用序列转换来生成一系列数字(从 1. 开始,递增 1..)。

然后,我根据此序列号(使用 mod(nextval,3))将表行路由到三个目标之一,这将导致 0,1 或 2。这是路由器的三个组。

Group 1 : MOD(NEXTVAL,3)=0
Group 2 : MOD(NEXTVAL,3)=1
Group 3 : MOD(NEXTVAL,3)=2

另外,您能否解释一下为什么需要将表加载到多个实例中?
我以前从未真正遇到过这样的场景。

Here is one way to achieve this result.

PowerCenter mapping

I use a sequence transformation to generate a series of numbers (starting with 1., increment by 1..).

I then route the table rows into one of the three targets based on this sequence number (using mod(nextval,3)) which will result in 0,1 or 2. Here are the three groups for the Router.

Group 1 : MOD(NEXTVAL,3)=0
Group 2 : MOD(NEXTVAL,3)=1
Group 3 : MOD(NEXTVAL,3)=2

Also, could you please explain why you need the table be loaded into multiple instances?
I have never really come across such scenarios before.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文