Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sqlite search query for finding a particular data from column?

Tags:

android

I am making app for finding number plates of india. my database contains two columnns "code" and "city" code contains data like MH1,MH2 etc. and city contains data like Pune,Mumbai.

App contains one edittext box and listview.

Listview consists whole data from database like GJ3 Rajkot, GJ10 Jamnagar etc.

if i write GJ in edittext box whole only data of GJ must be apperaed in listview.

like image 919
Pavan Anadkat Avatar asked Mar 13 '26 21:03

Pavan Anadkat


1 Answers

Here is the query : SELECT * FROM table_name WHERE code LIKE '%GJ%' LIMIT 0 , 30

like image 111
Jaiprakash Soni Avatar answered Mar 15 '26 11:03

Jaiprakash Soni



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!