151.CEILING()ORCEIL()
返回比参数大或等于参数的最小的整数值.
SELECTCEILING(3.56)FROMBSEMPMS;
SELECTCEIL(4.67)FROMBSEMPMS;
152.CHAR()
返回日期时间型,字符串,整数,十进制或双精度浮点数的字符串表示.
SELECTCHAR(SALARY,',')FROMBSEMPMS;
153.CHR()
返回具有由参数指定的ASCII码的字符.
SELECTCHAR(167)FROMBSEMPMS;
154.CONCAT()
返回两个字符串的连接.
SELECTCONCAT(EMP_NO,EMP_NAM)FROMBSEMPMS;
155.YEAR()
返回数值的年部分.
SELECTYEAR('2003/01/02')FROMBSEMPMS;
156.VARCHAR()
返回字符串,日期型,图形串的可变长度的字符串表示.
SELECTVARCHAR(EMP_NAM,50)FROMBSEMPMS;
157.UCASE()ORUPPER()
返回字符串的大写.
SELECTUCASE(EMP_NAM)FROMBSEMPMS;
SELECTUPPER(EMP_NO)FROMBSEMPMS;
158.TRUNCATE()ORTRUNC()
从表达式小数点右边的位置开始截断并返回该数值.
SELECTTRUNCATE(345.6789,2)FROMBSEMPMS;
159.TIME()
返回一个数值中的时间.
SELECTTIME('2001-03-19.12.30.123456')FROMBSEMPMS;
160.SUBSTR(EXP1,EXP2)
返回EXP1串自EXP2处开始的子串.
SELECTSUBSTR('CDNJFDJFJD',5)FROMBSEMPMS;
SELECTSUBSTR('CDNJFDJFJD',5,2)FROMBSEMPMS;