I am using FMDB and I just want to select a single record using TOP 1 – can you do this using FMDB? I have Googled and I haven’t found this mentioned anywhere – seems like a pretty common usage scenario.
Anyone?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t know about fmdb, but it seems to use raw/prepared sql statements, so you can use the SQLite documentation:
http://www.sqlite.org/lang_select.html
You can see that it uses
LIMIT 1(like MySQL) instead ofTOP 1(like MS SQL)