Я хочу использовать значение результата в запросе области. У меня есть пример запроса sqlite, как показано ниже,
query = [NSString stringWithFormat:@"Select * from tbl_numbering_plan where np_country_code ='%@' and np_prefix = SUBSTR('%@',0,Length(np_prefix))", [dictContactDetails objectForKey:KEY_CountryCode], [dictContactDetails objectForKey:KEY_CountryCode], [dictContactDetails objectForKey:KEY_Phonenumber]];
Здесь tbl_numbering_plan
- имя таблицы, np_country_code
и np_prefix
- строки таблицы.
Рассмотрим последнюю часть запроса это np_prefix = SUBSTR('%@',0,Length(np_prefix)
. Я хочу сделать такой же запрос в области.