SELECT ACOS(31.552278760192)
在 MSSQL Server 中执行时返回一些值,但在 MYSQL 中执行时返回 null。
感谢任何形式的帮助。
最佳答案
来自fine manual :
ACOS(X)
Returns the arc cosine of X, that is, the value whose cosine is X. Returns NULL if X is not in the range -1 to 1.
所以 31.552278760192 超出了 MySQL 的 ACOS
的范围。事实上,在 [-1,1]
和 acos(31.552278760192)
is ~4i 之外,反余弦函数不会产生实数。 .
关于php - MySQL 和 MS SQL 查询执行不同,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8005192/