【发布时间】:2020-01-02 15:33:36
【问题描述】:
我有一个带有 JSON col 的表
--------------------------------------
Col1 | Col2 | JSON_col | Key1 | Key2 |
--------------------------------------
JSON_Col的结构是Map,所以在DB中是{0: {data here}}
我需要实现这样的东西:
update <table> set JSON_Col = JSON_SET(JSON_Col, $.key1, data1, $.key2, data2)
where <condition>
在jOOQ中怎么写这样的东西。
【问题讨论】:
标签: mysql json sql-update jooq