Solved

what this error mean

Posted on 2009-05-07
3
382 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

Webinar: MongoDB® Index Types

Join Percona’s Senior Technical Services Engineer, Adamo Tonete as he presents “MongoDB Index Types, How, When and Where Should They be Used?” on Wednesday, July 12, 2017 at 11:00 am PDT / 2:00 pm EDT (UTC-7).

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.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

705 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