SQLite autoincrement - How to insert values?
问题 I generate a SQLite table (in java): create table participants (ROWID INTEGER PRIMARY KEY AUTOINCREMENT, col1,col2); afterwards I try to add rows using the INSERT comand: insert into participants values ("bla","blub"); i get the error: java.sql.SQLException: table participants has 3 columns but 2 values were supplied I thought the row id would be generated automatically, but it seems that I miss anything. I tried another solution: PreparedStatement prep = conn.prepareStatement("insert into