Inserting 444.44 into a DECimal(11,2) defined database field does not work

A

Arnold Peters

When I try to insert a record into a database I got a SQLException

java.sql.SQLException: Unexpected token: 444.0 in statement [

The database column is defined DECimal(11,2) and the value is of type double and value 444.44

Why does the database not accept this value ?

Arni
 
P

Paul Lutus

Arnold said:
When I try to insert a record into a database I got a SQLException

java.sql.SQLException: Unexpected token: 444.0 in statement [

The database column is defined DECimal(11,2) and the value is of type
double and value 444.44

Why does the database not accept this value ?

Because of a problem in the code you forgot to post?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top