sum()

    • 集合 foo.bar 中原始记录。
    1. > db.exec( "select sum(age) as 年龄总和 from foo.bar" )
    2. { "年龄总和": 6.0 }
    3. Return 1 row(s).