dimanche 11 janvier 2015

Mysql query for non stored Value from table

I have table with below details


userTbl


id name


1 user1


2 user2


above is userTbl table details ,


below is a query,


Select * from userTbl where id = 1 or id = 2 or id = 3 or id = 4


I should get only 3 , 4 as result.


is it possible in mysql? (SQLite mobile database -in iOS)


thanks in advance.


Aucun commentaire:

Enregistrer un commentaire