I created a table in Sqlite by using the CREATE TABLE AS
syntax to create a table based on a SELECT
statement. Now this table has no primary key b
You can't modify SQLite tables in any significant way after they have been created. The accepted suggested solution is to create a new table with the correct requirements and copy your data into it, then drop the old table.
here is the official documentation about this: http://sqlite.org/faq.html#q11