select
        (
            (
                (
                    acos(
                            sin( 37.488928356533556 * PI() /180.0 ) *
                            sin( lati * PI() /180.0 ) +
                            cos( 37.488928356533556 * PI() /180.0 )  *
                            cos( lati * PI() /180.0 ) *
                            cos( (127.02203885977609 - longi ) * PI() /180.0  )
                    )
                ) *  180.0 / PI()
            ) * 60*1.1515*1.609344*1000
        ) as distnace
from table

Posted by 짱가쟁이