Liam Healy - March 30th, 2007
Mar. 30th, 2007
09:59 am - SQLite math and string functions simplified
Thanks to Mikey C, there are now a number of math and string functions available in SQLite SQL queries. I blogged this before, but now I have simplified and cleaned up his code, and made it available.
The functions are: Math: acos, asin, atan, atn2, atan2, acosh, asinh, atanh, difference, degrees, radians, cos, sin, tan, cot, cosh, sinh, tanh, coth, exp, log, log10, power, sign, sqrt, square, ceil, floor, pi. String: replicate, charindex, leftstr, rightstr, ltrim, rtrim, trim, replace, reverse, proper, padl, padr, padc, strfilter.
For CLSQL users, the Lisp portion of the instructions in my previous post remain the same.
| ← Previous day | (Calendar) | Next day → |
