使用 LOG10(x) 计算以 10 为基数的对数
mysql> SELECT LOG10(2), LOG10(100), LOG10(-100); +--------------------+------------+-------------+ | LOG10(2) | LOG10(100) | LOG10(-100) | +--------------------+------------+-------------+ | 0.3010299956639812 | 2 | NULL | +--------------------+------------+-------------+
时间: 2024-11-20 08:09:47