Sqlite wildcards


#1

How can I use the column name as a wild card here?

return db.executeSql("UPDATE students SET ?=? WHERE uuid=?", [key, value, uuid])

Console Log:

Object {message: "sqlite3_prepare_v2 failure: near "?": syntax error", code: 5}


#2

You can’t. That’s outside the “structure” of SQL.