INSERT INTO MySQL (Decimal 10,4) - ???
Posted: Wed Nov 05, 2014 5:33 pm
Hi,
Assume it just another brain block - I need to insert/ update/ upsert data into a MySQL database, and having a field there that is formatted [Decimal 10,4] makes me trouble.
I keep getting errors of this field, I have tried all possible ways of numberformat and format now, but it still doesn't want to work.
So, assuming I have 10.5 (ten and a half) as value, how would I write it in my "VALUES" section of the SQL String to get it through?
I'm sure one one the wizards here will laugh now loudly, and solve my problem with a 1-liner - Thx a lot for it, my brain seems blocked for now!
Thx, and have fun!
Assume it just another brain block - I need to insert/ update/ upsert data into a MySQL database, and having a field there that is formatted [Decimal 10,4] makes me trouble.
I keep getting errors of this field, I have tried all possible ways of numberformat and format now, but it still doesn't want to work.
So, assuming I have 10.5 (ten and a half) as value, how would I write it in my "VALUES" section of the SQL String to get it through?
I'm sure one one the wizards here will laugh now loudly, and solve my problem with a 1-liner - Thx a lot for it, my brain seems blocked for now!
Thx, and have fun!