I've got no rows for both with and without rowid tables:
SQLite version 3.27.2 2019-02-25 16:06:06 Enter ".help" for usage hints. sqlite> create table t1(name); sqlite> create table t2(name primary key, phone) without rowid; sqlite> pragma index_info(t1); sqlite> pragma index_info(t2); sqlite> pragma index_info('t1'); sqlite> pragma index_info('t2'); sqlite> .tab t1 t2 sqlite> select * from t1 where rowid=1; sqlite> select * from t2 where rowid=1; Error: no such column: rowid
To determine if table XYZ is a WITHOUT ROWID table, run "PRAGMA index_info('XYZ');". If you get back one or more rows, then XYZ is a WITHOUT ROWID table. If you get back no rows, then XYZ is a rowid table.
_______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users