let sql = update equipment set ${type}=op('Delete', {${type}:?}) where objectId=? and place=? and user=? and ${type}=?
let pvalues=[gem,id,'bag',user,gem]
我改成这样子,貌似可以用了.之前是
let sql = update equipment set ${type}=op('Delete', {}) where objectId=? and place=? and user=? and ${type}=?
会报错.控制台的日志是:
300
CQL syntax error.Detail: Parse error at line 1, column 39:
update equipment set k1=op('Delete', {}) where objectId=? and place=? and user=? and k1=?
Expected one of:
"\s+"
"
'