1.字符函數
chr(int) 返回ASCII碼
count(string,string) 連接兩字符串
initcap(string) 首字母變大寫
lower(string) 轉換成小寫
upper(string) 轉換成大寫
lpad(string,count[,char]) 在左邊添加N個字符或空格
rpad(string,count[,char]) 在右邊添加N個字符或空格
ltrim(string[,char]) 去掉串中左邊的字符或是空格
rtrim(string[,char]) 去掉串中右邊的字符或是空格
replace(string,char[,char]) 替換字符串或是刪除字符串
substr(string,start[,count]) 截取字符串
length(string) 串長度
2.數字函數
abs(value) 絕對值
ceil(value) 大于或等于 的最小整數
floor(v) 小于或等于 的最大整數
cos(v) 余弦值
cosh(v) 反余弦值
exp(v) e為底的指數值
ln(v) 自然對數
log(v) 10為底的對數
power(v,exponent) 指數值
round(value,p) 四舍五入
mod(v,divisor) 取余
sort(v) 平方根
3.日期函數
add_months(date,count) 增加count月后的日期
last_day(date) 月末日期
months_between(date1,date2)兩日期之間的間隔月份
new_time(date,'this','other')轉換時區時間
next_day(date,'day') 星期幾的日期
sysdate() 系統日期
current_timestamp() 當前的時間和日期
4.轉換函數
to_char(date,'format') 轉換成字符串
to_number(char) 轉換成數字
to_date(string,'format') 轉換成指定格式的日期
chartorowid(char) 字符串轉換成rowid
rowidtochar(x) rowid轉換成字符