0

I was working with sqlite but I end up with this error.I'm not getting what is error here.

Below is my logcat.

android.database.sqlite.SQLiteException: near "/": syntax error: , while compiling: 

SELECT start,end FROM crop_list WHERE name =/sdcard/Shri Ramachandra kripalu bhajamana.mp3
GAMA
  • 5,958
  • 14
  • 79
  • 126
Vin99999
  • 139
  • 1
  • 14

2 Answers2

2

I think your problem is you forget to add the quotes marks (' ') like:

SELECT start,end FROM crop_list WHERE name ='/sdcard/Shri Ramachandra kripalu bhajamana.mp3'.

gutiory
  • 1,135
  • 5
  • 13
  • 33
0

why do you not use class helper and Helper.dabase.query(.....) <- it is faster ;) around 2 segons faster that helper.dabase.rawquery ;) SQLiteOpenHelper | Android Developers <-- best practice

Alex Muni
  • 473
  • 5
  • 16