Skip to content Skip to sidebar Skip to footer

Sql Table Not Found Exception

i have made a table and its fields but i get error that no such row exist and if i comment them out then it is not detecting the table also showing no such table exist.Here's the c

Solution 1:

You are using "type" on your contentvalue but your column is named: "_type".

Solution 2:

You are querying the event_db table which is the name of your database, not your table

Cursorc= db.rawQuery("SELECT * FROM "+ "event_db",null);

You should query the _table table

Cursorc= db.rawQuery("SELECT * FROM "+ "_table",null);

By the way it would be more clear if you name your database db (I doubt you need more than one db anyway) and your table _event (you can have many tables and you should name them accordingly to their role and not just _table)

Post a Comment for "Sql Table Not Found Exception"