ios - concatenate values from two columns and compare it against one value in sqlite -


i using sqlite in 1 ios project among other columns there 2 columns. 1 has country code mobile dialing +880 , other column has rest of mobile number 1912353697. want join values these 2 columns , compare result value against +8801912353697 , if matches pull corresponding name value in table . right query. have tried select name contact_list (select mbldc || mbl contact_list) = "+8801617634317" ; not work .

a appreciated.

try:

select name contact_list  mbldc || mbl = "+8801617634317"; 

from sqlite documentation: the || operator "concatenate" - joins 2 strings of operands.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -