I have a field X in my database which contains text values. My values are all ascii (between 0-255 ascii code), I would like to decrement all my values.
If we have for instance ‘1’ as the text, it should be ‘0’ instead. At first I wanted to use the function ASCII and CHAR but they are not available in sqlite. Any tips ?
I have a field X in my database which contains text values. My values
Share
If your values are all a single character, you can use a table of replacement values; here’s a partial example:
You’d have to flesh out the m1 table for all possible values.