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 6834667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:08:23+00:00 2026-05-26T23:08:23+00:00

need help from some gurus here, I have a database which I have moved

  • 0

need help from some gurus here, I have a database which I have moved to the documents directory. For one procedure, I check if a table ‘PASS’ exists, if it does I delete & recreate it (just quicker). then I start reading data from another table ‘EN’, at the end of the calculation I attempt to insert values (ints, chars from the ‘EN’ table, floats) from both the ‘EN’ table and my own calcs

the procedure loops a couple hundred times and passes through the sqlite3_exec statement without errors.

But when I go to check the table it’s empty (used sqlite manager addon for firefox)

the actual code is below, if anyone could spot the problem I’d be in great debt

thanks

sqlite3 *dbCon;                      
sqlite3_open([self.dblocation UTF8String], &dbCon); // open    

NSString *insert=[NSString stringWithFormat:@"INSERT INTO PASS VALUES('%d','%s','%s','%f','%f','%f','%f','%f','%f','%f','%f','%f','%f','%f','%f','%f','%f,%f');",
    sqlite3_column_int(selectstmt, 0), //id
    sqlite3_column_text(selectstmt, 1), // type 
    sqlite3_column_text(selectstmt, 2), // designation
    sqlite3_column_double(selectstmt, 4), // weight
    sqlite3_column_double(selectstmt, 5), //area
    d, // depth
    sqlite3_column_double(selectstmt, 28), // ix
    sqlite3_column_double(selectstmt, 30),
    cb,
    mmax,
    smax,
    stress,
    fb,
    shear,
    0.4*1000*yield,
    def,
    span/240.,
    span/360.
    ];

    sqlite3_exec(dbCon, [insert UTF8String],NULL,NULL,nil); // borrada
    sqlite3_close(dbCon);
  • 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-26T23:08:24+00:00Added an answer on May 26, 2026 at 11:08 pm

    NEVERMIIND,

    at the end of the NSString I have ‘%f,%f’ ~~> ‘%f’,’%f’ fixes it

    thanks!

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

Sidebar

Related Questions

Need some help from javascript gurus. I have one page where http://www.google.com/finance/converter is embedded
I need some help from the shell-script gurus out there. I have a .txt
I have one jQuery code and need some help from u guys to improve
I need some help from some linux gurus. I am working on a webapp
I need help from some one to convert the following line of code from
need some help from a regex jedi master: If I have a string of
hi all i need some help from you guys.. well here's the description Guys
Hi JQuery Masters i need some help from you, i have some div's <div
I seem to have hit a wall here and would appreciate some help from
Ok, I'm stuck, need some help from here on... If I've got a main

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.