次のように、テーブル内の任意の列を更新しようとしています。
cursor.execute('update table set :n = :v where submitter = :s',
{'n':'col1', 'v': 10, 's': 'mike'})
しかし、それは私に与えますsqlite3.OperationalError: near ":n": syntax error
。奇妙なことに、私が行うとうまく動作します
cursor.execute('update table set col1 = :v where submitter = :s',
{'n':'col1', 'v': 10, 's': 'mike'})
インジェクション保存の方法で列に名前を付けられないように見えるのはなぜですか? 任意の列を設定する他の方法はありますか?