How to calculate square root in sqlite

前端 未结 4 1125
悲哀的现实
悲哀的现实 2021-02-18 21:55

I need to calculate an euclidean distance in a sqlite database.

Does anyone know how to calculate square roots in sqlite beside writing and loading a dynamic library for

4条回答
  •  长发绾君心
    2021-02-18 22:23

    As far as I know - you can't do that using only core functions.

    Here is the list of native functions Core functions and a list of aggregate functions Aggregate functions.

    To solve your problem, you can write your own UDF (user defined function) as illustrated HERE

提交回复
热议问题