I have a column “page” defined as an integer in my SQLite database.
I am using a recordset to update the page field, which works swimmingly, but I found I am able to update the field with non-integer values. I can (and should) limit what a user is able to enter into the field to only integer values, but I’m concerned about the fact I seem to be able to “corrupt” the data in my database without much effort…
Here is the DDL for this table:
CREATE TABLE Entries (
entryID INTEGER PRIMARY KEY AUTOINCREMENT,
Even editing the table directly with SQLiteStudio allows me to put non-integer data into the page field
Do I need to define this table differently if I really only want integer values in the page column?