Solved

what this error mean

Posted on 2009-05-07
3
376 Views
Last Modified: 2012-05-06
what is this error mean DBD::PgPP::st execute failed: Wrong number of bound parameters at ...
0
Comment
Question by:tankergoblin
  • 2
3 Comments
 
LVL 77

Expert Comment

by:arnold
ID: 24333372
Means that you passed the wrong number of items.
I.e. it seems as though you have prepared a dynamic query, but when executing you provided one item less than required.
That is just one possible explanation.
Post the query, and the solution might be obvious.

0
 
LVL 7

Author Comment

by:tankergoblin
ID: 24333438
what does it mean by wrong number of items...
i want to read file content to database
is that mean the column field name is not match with the name in database?
0
 
LVL 77

Accepted Solution

by:
arnold earned 500 total points
ID: 24333522
You have not posted the query so it is hard to say.
No, it means that you have may have more columns, than values or the other way around.
(column1,column2) values (value1)
or
(column1,column2) values (value1,value2,value3)

Post the query and it might be clearer.

Alternatively, you may have values (value1,value2,value3), but the table into which the data is being inserted only has two columns.
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
round to  2 digit in postgres 3 309
Problem to login 7 342
Creating an sp procedure in PostgreSQL database 10 332
Postgresql  SQL output set column width 3 239
Best database to use for Maps is PostgreSQL. This is an open source database. Comes as a package with most Linux OS. For more info visit the following site: http://www.postgresql.org/ (http://www.postgresql.org/) This requires some add-o…
Many developers have database experience, but are new to PostgreSQL. It has some truly inspiring capabilities. I have several years' experience with Microsoft's SQL Server. When I began working with MySQL, I wanted a quick-reference to MySQL (htt…
Steps to create a PostgreSQL RDS instance in the Amazon cloud. We will cover some of the default settings and show how to connect to the instance once it is up and running.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now