您现在的位置: > 技术沙龙 > 数据库 > SQL Server > Transact-SQL 参考 > LOG
  • 相关软件
    >LOG 创建者:webmaster 更新时间:2006-02-16 15:51

    返回给定 float 表达式的自然对数。



    语法


    LOG ( float_expression )



    参数


    float_expression



    float 数据类型的表达式。



    返回类型


    float



    示例


    下例计算给定 float 表达式的 LOG。



    DECLARE @var float
    SET @var = 5.175643
    SELECT 'The LOG of the variable is: ' + CONVERT(varchar,LOG(@var))
    GO


    下面是结果集:



    The LOG of the variable is: 1.64396                        

    (1 row(s) affected)
    相关文章
    本页查看次数: