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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:44:11+00:00 2026-06-04T12:44:11+00:00

This is the SQL code I want to run on my SQLite3 DB: INSERT

  • 0

This is the SQL code I want to run on my SQLite3 DB:

INSERT INTO tbl_types VALUES(?, ?);

But no matter how much I play with ?s I get the same "SQL logic error or missing database" error, while simply replacing the ?s with custom arbitrary values, runs and I get the record there in my table, and thus I deduce something’s wrong with my syntax.

What’s the cure?

  • 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-06-04T12:44:13+00:00Added an answer on June 4, 2026 at 12:44 pm

    I must apologize for I found the problem partly by Googling and partly brute force:

    1. I was supplying a default 0 argument for an auto increment field, which I replaced with NULL, this I found on the web.
    2. I was binding my values starting from 0, while the doc says The leftmost SQL parameter has an index of 1 and I was confusing it with the similar clause I read at column page.

    Thanks for taking your time anyway 😉

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

Sidebar

Related Questions

We have some code that we want to run a BULK INSERT sql command,
I want to do some sql code run in my webservice in c# The
I have this small code using SQL Server Agent to Run a Remote Package
I am trying to run a replace into DB call, but I only want
I use Spring's JdbcTemplate to run an insert SQL statement. The field I want
I want to run an SQL file that has a lot of Insert Statments,
This SQL Server 2005 T-SQL code: DECLARE @Test1 varchar; SET @Test1 = 'dog'; DECLARE
Is this code sufficient to protect me from SQL injection attacks, and PHP injection
This code runs on my local RoR/Windows 7 (64-bit): sql = ActiveRecord::Base.connection() last_pk =
I have this code, but i cant make it work: images = Image.find_by_sql('PREPARE stmt

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.