change DATABASE_VERSION and run that
On Tue, Apr 17, 2012 at 9:04 AM, Kirupa <[email protected]> wrote: > 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 -- Regards, Narayanareddy.B 9032478372 -- 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

