daydreamer6565
asked on
Error:VALUES clause must contain at least one element. Empty elements are not allowed.
I am creating an application for tracking orders of cloth store..
I am getting error-
java.sql.BatchUpdateExcept ion: VALUES clause must contain at least one element. Empty elements are not allowed.
I took 'ORDER_INDEX' as auto increment..i have read that there is no need to provide any value for a field which is auto increment so im not providing any value for 'ORDER_INDEX'.. what could b the issue ...pls see the attached codes..
table-creation.txt
insert-code.txt
I am getting error-
java.sql.BatchUpdateExcept
I took 'ORDER_INDEX' as auto increment..i have read that there is no need to provide any value for a field which is auto increment so im not providing any value for 'ORDER_INDEX'.. what could b the issue ...pls see the attached codes..
table-creation.txt
insert-code.txt
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes you were right ..i corrected it and now the record is inserted sucessfully..
Thanks :D
Thanks :D
Good, it worked for you!
Open in new window