title: Read a CSV to insert data into Postgres SQL with Python
body: <p>I want to read a csv file to insert data into postgres SQL with Python
  but I have these error:</p>
  
  <pre><code>  cursor.execute(passdata)
    psycopg2.IntegrityError: duplicate key value violates unique constraint "prk_constraint_project"
    DETAIL:  Key (project_code)=(%s) already exists.
  </code></pre>
  
  <p>My code is:</p>
  
  <pre><code>  clinicalCSVINSERT = open(clinicalname, 'r')
    reader = csv.reader(clinicalCSVINSERT, delimiter='\t')
    passdata = "INSERT INTO project (project_code, program_name ) VALUES ('%s', '%s')";
    cursor.execute(passdata)
    conn.commit()` 
  </code></pre>
  
  <p>What does this error mean?
  Is it possible to have a working script?</p>