函數 (SQL Functions)

SQL 主要有三大類內建函數,分別是聚合函數 (Aggregate Functions)、字串函數 (String Functions) 與數學運算函數 (Mathematical Functions)。

聚合函數 (SQL Aggregate Functions)

AVG()
COUNT()
MAX()
MIN()
SUM()

字串函數 (SQL String Functions)

ASCII()
CHAR()
CONCAT()
LENGTH()
REPLACE()
UCASE()
LCASE()
MID()

數值函數 (SQL Mathematical Functions)

ABS()
CEILING()
FLOOR()
POWER()
SQRT()
LOG()
三角函數