| Author |
Column count not matching the amount of columns in database
|
A Joseph
Greenhorn
Joined: Dec 10, 2010
Posts: 7
|
|
Hi All,
I am having a problem with the above error being produced from my code
In the query variable I have
In the SQL code my schema is set up like this
My problem is that two of my columns are set automatically (userID, userLocked). So I thought all I need to set is the userName and password. But whenever I run this code I get the error Column count doesn't match value count at row 1. So how do I represent these columns without setting them in the code? Thanks in advance for any advice.
|
 |
Jan Cumps
Bartender
Joined: Dec 20, 2006
Posts: 2343
|
|
|
"zero byte", please check your private messages for an administrative matter.
|
OCUP UML fundamental
ITIL foundation
|
 |
Jan Cumps
Bartender
Joined: Dec 20, 2006
Posts: 2343
|
|
|
you should use "insert into table (columnA, columnB) values (?, ?)"
|
 |
 |
|
|
subject: Column count not matching the amount of columns in database
|
|
|