I want to create table if not exists,else update it.
this code is for create table:
CREATE TABLE Book
ID INT(10) PRIMARY KEY AUTOINCREMENT,
Name VARCHAR(60) UNIQUE,
TypeID INT(10),
Level INT(10),
Seen INT(10)
how can I change it to support update too?
//EDIT
I mean if I add a column,only add a column...not remove last data
If I remove a columns (for example remove TypeID INT(10) from the command) just that columns be remove...not all data