You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-zh@flink.apache.org by Zhiwen Sun <pe...@gmail.com> on 2022/06/15 03:44:03 UTC
Re: flink-connector-jdbc是否支持多个values问题
支持同时写入多个 values ,这个是 jdbcurl 控制,设置 *rewriteBatchedStatements=true*
生成的 SQL 类似:
INSERT INTO `order_summary`(`order_id`, `proctime`, `order_status`,
> `order_name`, `total`)
> VALUES
> (3, '2022-06-14 22:31:24.699', 'OK', 'order-name-1', 20) ,
> (2, '2022-06-14 22:31:21.496', 'OK', 'order-name-1', 131)
> ON DUPLICATE KEY UPDATE `order_id`=VALUES(`order_id`),
> `proctime`=VALUES(`proctime`), `order_status`=VALUES(`order_status`),
> `order_name`=VALUES(`order_name`), `total`=VALUES(`total`)
Zhiwen Sun
On Mon, Mar 7, 2022 at 5:07 PM 黑色 <xi...@qq.com.invalid> wrote:
> 你看一下底层的源码实现全知道了,它insert into xxxxx() values() ON duplicate
> Key 实现Insert update,所以不会的
>
>
>
>
> ------------------ 原始邮件 ------------------
> 发件人: "payne_z"<payne_z@aliyun.com.INVALID>;
> 发送时间: 2022年3月7日(星期一) 下午3:49
> 收件人: "user-zh"<user-zh@flink.apache.org>;
> 主题: flink-connector-jdbc是否支持多个values问题
>
>
>
> 请问flink-connector-jdbc是否支持同时写入多个values的用法?