我在更新多个动态列时遇到问题。当下面的数组的长度为1时,它可以正常工作,但如果更大,则失败。
query = `UPDATE appeal_status SET ?? = ?, ?? = ?, ?? = ?, ?? = ?, ?? = ? WHERE id = ?`;
我绑定的值看起来像这样。
[
[ 'var1_created_at','var2_created_at','var3_created_at' ],
[ '2018-09-30 19:44:41','2018-09-30 19:44:41','2018-09-30 19:44:41' ],
[ 'var1_appeal_hoce_uid','var2_network_uid','var3_uid' ],
[ 'test1', 'test2', 'test3' ],
[ 'var1_title','var2_title','var3_title' ],
[ 'test', 'test', 'test' ],
[ 'var1_status','var2_status','var3_status' ],
[ 'approve', 'approve', 'approve' ],
[ 'var1_signature','var2_signature','var3_signature' ],
[ 'image/jsignature;base30','image/jsignature;base30','image/jsignature;base30' ],
7
]