How to calculate square root in sqlite

前端 未结 4 1114
悲哀的现实
悲哀的现实 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:34

    Well, I have a semi-answer.

    Yes it involves a 3rd party, but you don't have to write it yourself : did you check the last extension on this page ?

    It includes several math functions, and amongst them is sqrt().

提交回复
热议问题