How to write NamedQuery haversine formula in NamedQuery?

后端 未结 1 641
陌清茗
陌清茗 2021-01-25 16:41

I want to run below query of haversine formula as NamedQuery but I don\'t know how to correct it.

set @orig_lat = 37.334542;
set @orig_lon = -121.890821;
set @di         


        
相关标签:
1条回答
  • 2021-01-25 17:46

    Finally able to find out solution. Instead of createQuery, I used createNativeQuery and that solve my problem.

    0 讨论(0)
提交回复
热议问题