ACOS() 函数返回数字的反余弦。指定的数字必须在-1到1之间,否则该函数返回NULL。
ACOS(数值)
mysql> SELECT ACOS(1); +---------+ | ACOS(1) | +---------+ | 0 | +---------+ mysql> select ACOS(-0.8); +-------------------+ | ACOS(-0.8) | +-------------------+ | 2.498091544796509 | +-------------------+ mysql> SELECT ACOS(1.0001); +--------------+ | ACOS(1.0001) | +--------------+ | NULL | +--------------+