'Insert BigDecimal from Java to Decimal in h2 database

I have create this table here:

enter image description here

As you can see from above. It successfully created a table However, when I tried this command:

I also tried to do in the h2 database: enter image description here

At this point, I don't know where I did wrong. Is this my syntax or the bigdecimal problem. Please help me.



Solution 1:[1]

try this:

insert into mystock(name, date, open, high, low, close) values (...)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Nguyen Duc