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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:48:04+00:00 2026-05-27T11:48:04+00:00

Cant find the correct syntax for INSERT query with python informixdb python 2.6.6 python

  • 0

Cant find the correct syntax for INSERT query with python informixdb

  • python 2.6.6
  • python INFORMIXDB version 2.5
  • driver name : IBM Informix-ESQL
  • driver version : 3.50.FC8
  • on debian squeeze

here’s the doc – http://informixdb.sourceforge.net/manual.html#binding-parameters

>>> cursor.execute('INSERT INTO names VALUES(:first,:last,:age)',
...                dict(first='some', last='body', age=56) )

So i tried for example

 cursor.execute('INSERT INTO transit_auftrag_i VALUES(:auftragskey,:transitkunde,:status)',dict(auftragskey='erII',transitkunde='DMIeLE',status='OK') )

this is what i get in this example

<class '_informixdb.ProgrammingError'>
('PREPARE', -236, [{'message': 'Insert value list does not match column list', 'sqlstate': '21S01'}])
<class '_informixdb.ProgrammingError'>
('DESCRIBE', -410, [{'message': 'Syntax error or access violation in PREPARE or EXECUTE IMMEDIATE', 'sqlstate': '37000'}])
Segmentation fault

any hints what i could try please?

UPDATE: informix 11.50.xC8

UPDATE

thanks so far. I do the following query now which runs without errors, but also with no message from the cursor and it does not insert anything. If you have a suggestion it would be great.

cursor.execute("INSERT INTO transit_auftrag_i (auftragskey,transitkunde,status) VALUES (:a,:b,:c)", dict(a='A',b='B',c='C') )
  • 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-27T11:48:05+00:00Added an answer on May 27, 2026 at 11:48 am

    You should list the columns explicitely that you want to populate:

    INSERT INTO names (firstname, lastname, age) VALUES (:first,:last,:age)

    Apperently your table has more columns than you supply, or they are in a different order.

    Not stating the columns for an INSERT statement is a bad programming habit, that you should get rid off as quick as possible

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

Sidebar

Related Questions

I can't find the correct syntax for passing a pointer array of type float
I can't seem to find the correct syntax for the CSS transition shorthand with
I can't find a correct way to get the environment variable for the appdata
This may be super easy to solve but I can't find the correct google
I cant find one way to get this value (comment) into json using javascript.
I cant find the way how to strip the useless section of my string
I cant find an expression to evaluate a part of a string. I want
I've tryed mylyn but i cant find that feature, if anyone have test mantis
Dust me selectors is installed but cant find anyway of saving the css minus
similar questions have been asked before but I cant find an exact match to

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.