You cannot use rowid if it is not defined in your table, but if you define it as follows:
CREATE TABLE IF NOT EXISTS Clase( ROWID INTEGER NOT NULL, nombre VARCHAR(50) NOT NULL, PRIMARY KEY(ROWID));
The ROWID column can be used to create external links, and when you insert a record into the table, the ROWID column behaves like an auto-increment field, so it is recommended that there are no auto-increment fields in sqlite.
Note. The ROWID column can be called differently, only it must be of type INTEGER and the primary key of the table.
Ivan
source share