I want to delete my database. How i do? , I created a column in a
table then i changed the column name. then I got error.
static final String TABLE_ROW_ONE = "eventname";
static final String TABLE_ROW_TWO = "eventaddress";
static final String TABLE_ROW_THREE = "eventchief";
String newTableQueryString = "create table " +
TABLE_NAME +
" (" +
TABLE_ROW_ID + " integer primary key autoincrement not
null," +
TABLE_ROW_ONE + " text," +
TABLE_ROW_TWO + " text," +
TABLE_ROW_THREE + " text"+
");";
db.execSQL(newTableQueryString);
//////////////////////////////
Then I changed eventname as event
static final String TABLE_ROW_ONE = "event";
static final String TABLE_ROW_TWO = "eventaddress";
static final String TABLE_ROW_THREE = "eventchief";
String newTableQueryString = "create table " +
TABLE_NAME +
" (" +
TABLE_ROW_ID + " integer primary key autoincrement not
null," +
TABLE_ROW_ONE + " text," +
TABLE_ROW_TWO + " text," +
TABLE_ROW_THREE + " text"+
");";
db.execSQL(newTableQueryString);
//////I got error that can not find event column
What is the reason for this error?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en