I would like to create an SQLite table in python without the default rowid field.
For example, I have tried
import sqlite3
conn = sqlite3.connect("mydatabase.db")
cursor = conn.cursor()
sql = "CREATE TABLE tblTest (myid VARCHAR(20) PRIMARY KEY, testField1 VARCHAR(14), testField2 VARCHAR(2500) ) WITHOUT ROWID "
cursor.execute(sql)
And this is the error I get:
sqlite3.OperationalError: near "WITHOUT": syntax error
Any suggestions? Thank you in advance.