Solved

what this error mean

Posted on 2009-05-07
3
381 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 78

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 78

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

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 video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
Suggested Courses

740 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