Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7632507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:38:36+00:00 2026-05-31T06:38:36+00:00

i have a requirement of retrieving specific amount of records from sqlite database at

  • 0

i have a requirement of retrieving specific amount of records from sqlite database at a time, now in this query i am trying to retrieve 0 to 20 records from database, but its not working, plz. tell me what i am doing wrong, here is my query

NSString *sqlStr = [NSString stringWithFormat:@"SELECT * FROM Apns ORDER BY NotificationMessage LIMIT '%d', '%d'",a,b];    

const char *sql = [sqlStr UTF8String];

here a is an integer containg 0 and b also an integer containing 20 in it (a and b can contain different values other than 0 and 20 according to user wish or requirement). i want to fetch these record and dispaly them in a table view but that query is not working please guide me in this, thanx and Regards. Saad

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T06:38:37+00:00Added an answer on May 31, 2026 at 6:38 am

    Perhaps the ' is wrong.

    NSString *sqlStr = [NSString stringWithFormat:@"SELECT * FROM Apns ORDER BY NotificationMessage LIMIT %d,%d",a,b];   
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a requirement where there is a URL = http://www.example/Open.pdf Now from my
In my iPhone app, I have requirement to search the SQLite database. I will
In our project we have requirement that, after receiving sms message from third party
I have requirement like this: On one server(linux) I need to run 2 instances
I have requirement where in i want to download the files from different machines
I have different requirement from a customer to write a automated test script for
I have a requirement that my app, can receive events (e.g. messages) from server
I have requirement to access the folder from a another machine based on the
I have requirement like this, Have One NSIMageView and which will be changing frequently
I am retrieving a list of database records and displaying them using a ListView.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.