Is it possible to use sum()
function for bigdecimal column in sqlite, since they are stored as varchar
? I'm using ormlite for that.
Asked
Active
Viewed 177 times
0

Saurabh Bhandari
- 2,438
- 4
- 26
- 33

Willian Feltri
- 3
- 2
1 Answers
1
If the "bigdecimal" is stored as string (SQLite3 TEXT type), then you cannot use the sum() function. You have to either (1) extract the fields, convert them to some numeric type, and perform the sum() in your program, or (2) create a custom function in SQLite3 that would do the same, and call that.

varro
- 2,382
- 2
- 16
- 24