数据库教程
  • Sakila
  • MySQL
  • MySQL 参考
  • PostgreSQL
  • SQLite 字符串函数参考
    • char
    • format
    • glob
    • hex
    • instr
    • length
    • like
    • lower
    • ltrim
    • printf
    • quote
    • randomblob
    • replace
    • rtrim
    • substr
    • substring
    • trim
    • unicode
    • upper
    • zeroblob
  • SQLite 数学函数参考
    • abs
    • acos
    • acosh
    • asin
    • asinh
    • atan
    • atan2
    • atanh
    • ceil
    • ceiling
    • cos
    • cosh
    • degrees
    • exp
    • floor
    • ln
    • log
    • log10
    • log2
    • max(x,y,...)
    • min(x,y,...)
    • mod
    • pi
    • pow
    • power
    • radians
    • random
    • round
    • sign
    • sin
    • sinh
    • sqrt
    • tan
    • tanh
    • trunc
  • SQLite 日期时间函数参考
    • date
    • datetime
    • julianday
    • strftime
    • time
    • unixepoch
  • SQLite JSON 函数参考
    • json
    • json_array
    • json_array_length
    • json_each
    • json_extract
    • json_group_array
    • json_group_object
    • json_insert
    • json_object
    • json_patch
    • json_quote
    • json_remove
    • json_replace
    • json_set
    • json_tree
    • json_type
    • json_valid
  • SQLite 流程控制函数参考
    • coalesce
    • ifnull
    • iif
    • nullif
  • SQLite 窗口函数参考
    • cume_dist
    • dense_rank
    • first_value
    • lag
    • last_value
    • lead
    • nth_value
    • ntile
    • percent_rank
    • rank
    • row_number
  • SQLite 聚合函数参考
    • avg
    • count
    • group_concat
    • max
    • min
    • sum
    • total
  • SQLite 系统参考
    • changes
    • last_insert_rowid
    • sqlite_compileoption_get
    • sqlite_compileoption_used
    • sqlite_source_id
    • sqlite_version
    • total_changes
    • typeof

SQLite pi() 函数使用指南

SQLite pi() 函数返回圆周率 π 的近似值。

pi() 语法

这里是 SQLite pi() 函数的语法:

pi()

参数

SQLite pi() 函数不需要任何参数。

返回值

SQLite pi() 函数返回圆周率 π 的近似值。

pi() 示例

本示例展示了 SQLite pi() 函数的基本用法:

SELECT pi();
 pi() = 3.14159265358979
←SQLite mod() 函数使用指南 SQLite pow() 函数使用指南→
本页目录
  • pi() 语法
    • 参数
    • 返回值
  • pi() 示例