title: SQLwith python OperationalError (sqlite)
body: <pre><code>import sqlite3
  
  conn = sqlite3.connect('MyIndex.db')
  
  c = conn.cursor()
  
  def insert(t, f, d):
      with conn:
          c.execute("INSERT INTO Index VALUES (:t, :frequency, :docID)", {'t': t, 'f': f, 'd': d})
  
  
  insert('apple', 1, '1/2')
  
  conn.close()
  </code></pre>
  
  <p>I am using SQLite to build a simple database. I have trouble with the insert function. It keeps showing that:</p>
  
  <pre><code>sqlite3.OperationalError: near "Index": syntax error
  </code></pre>
  
  <p>But I failed to find any syntax error in my code. Can someone tell me how to fix it? Thanks in advance.  </p>