1.创建一个和表 pnr_1 结构一样的表 Create table pnr_2 as pnr_1 with no data 不含数据 Create table pnr_2 as pnr_1 with data 含数据 2.NULLIF(exp1,exp2) 当字段exp1与exp2相等时返回 空:当两者不相等时返回 exp1 -------常用在除数不能为0的限制下 RPK/NULLIF(ASK,0) 3.Substr(exp,m,n) 从第m位开始截取,截取长度为 n ------常
代码 Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> &