var hot = new Handsontable(container, {}
JSON.stringify({data: hot.getData()})
JSON: { data: [
"col_1" // These are the table columns
"col_2"
],
[
"test2",// there are values
"201702"
],
[
"test2",// there are values
"201702"
]
}
这里的列始终是动态的。我需要相应地构建插入查询。有人可以帮助我如何将可操作的数据插入到表中。
最佳答案
这在 12.1.0.2.0 中对我有用
SELECT *
FROM JSON_TABLE (' [["USD" , "GBP", 1.2],
["USD" , "EUR", 1.1],
["GBP" , "EUR", .9]]', '$[*]' columns (
c varchar2(100) path '$[0]',
tc varchar2(100) path '$[1]',
cr number path '$[2]'));
关于javascript - 如何将 Handsontable Json 数组插入(批量)到 oracle 表中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43739333/