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

  • Home
  • SEARCH
  • 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 475397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T00:23:03+00:00 2026-05-13T00:23:03+00:00

I am having problems writing statements, especially when updating. I want to update a

  • 0

I am having problems writing statements, especially when updating.

  • I want to update a column with a parameter, but I don’t know the special characters to use like @ or %d.

I tried to do:

const char *sqlStatement = [[NSString stringWithFormat:
  @"update lugar set frecuencia ='d%'aumentador Where idLugar = '%d'",
  idLugarParametro] cStringUsingEncoding:NSUTF8StringEncoding];

But I get a problem with: frecuencia ='d%'aumentador

  • How can I find a guide or tutorial for using this special characters for creation statements? (Using Objective C specifically.)
  • 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-13T00:23:04+00:00Added an answer on May 13, 2026 at 12:23 am

    Here’s An Introduction To The SQLite C/C++ Interface.

    Here’s the Apple documentation for NSString stringWithFormat, and string format specifiers.

    I note that it seems you typed d%, but probably meant %d for the format specifier (you might need an extra space in there too), and that
    you’ve only supplied one arg (idLugarParametro), but your format string has two specifiers:

    ------------------------------1v------------------------------2v
    update lugar set frecuencia ='%d' aumentador Where idLugar = '%d'
    

    so you need to supply two values – the new frecuencia value is not there.

    Lastly, suggest that you look in to the use of prepared statements once you’ve got the hang of the basics – see the SQLite docs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a C program but I keep having problems with my array of
I'm writing a small program to calculate a physics problem but I'm having problems
I figured this should be easy, but I am having problems writing a simple
I am having some problems writing to a file in unicode inside my c
I'm having a problem writing Norwegian characters into an XML file using C#. I
The problem I'm having with writing a web application architecture is that I want
I'm having problems reading and writing to a plist file. I can read the
i'm having problems with paged pool resource on windows. I'm writing a dll with
I've been having problems writing XML and reading it in. I have a handwritten
I'm having problems writing a custom DS source filter to play a TS stream

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.