Skip to content
Prev 813 / 1559 Next

Extend dbWriteTable to specify a primary key

On 3/25/10 5:28 PM, Douglas Bates wrote:
You might find a read through the SQLite docs on table creation helpful:
http://sqlite.org/lang_createtable.html

In current versions of SQLite, a column declared as primary key is 
allowed to have NULL.  The table will get an additional key column 
accessible as ROWID that is used internally.  You can specify INTEGER 
PRIMARY KEY in which case values must not be null and this will be an 
alias for ROWID.

+ seth