Exception from logcat:
04-17 20:52:39.693: E/AndroidRuntime(9963): java.lang.RuntimeException: Unable to start activity ComponentInfo{http://ift.tt/1mMoypf}: android.database.sqlite.SQLiteException: no such column: NEWS (code 1): , while compiling: SELECT sub_menu FROM app_menu_table WHERE main_menu = NEWS ORDER BY sub_order ASC
I have a table called app_menu_table in my db. I have some columns called main_menu, sub_menu, sub_order, etc., and in main_menu column, there are some values with text NEWS, XYZ, etc.,. I am trying to get data from sub_menu, when main_menu column's text is NEWS. But, i get an error saying, there is no such column NEWS? What is that i am doing wrong?
Aucun commentaire:
Enregistrer un commentaire