mercredi 30 septembre 2015

Get multiple rows from sqlite table IOS

I'm trying to fetch multiple rows from sqlite table by id using FMDB. Here is my code.

FMResultSet *results = [db executeQuery: @"SELECT * FROM brands WHERE brand_id = ?", arrayOfNumbers];

The number of items in array and their values can be different each time.

Looking for DB Query to fetch ids. Thanks in advance!

Aucun commentaire:

Enregistrer un commentaire