Professional Documents
Culture Documents
Fetttobse Sqlite
Fetttobse Sqlite
sqlite Will create a new The ALTER TABLE function is limited in PRIMARY KEY Sets column as primary key.
filename.db database SQLite. The constraints NOT NULL
You can either rename the table with: and UNIQUE will be set
Create Tables
ALTER TABLE tablename RENAME TO automatically.
newtablename
NOT NULL Prevents the column from
CREATE TABLE name (
Or add a new column with: empty values (null).
colname type constraints,
ALTER TABLE tablename ADD COLUMN
colname type constraints UNIQUE Each value in the column has
columndefintion
to be unique.
)
It is not possible to change column definitions of
This will create a new table. For types and existing tables. INTEGER PRIMARY KEY s will automatically
constraints look right. become the ROWID and therefore will be