摘要: Decode函数的语法结构如下: decode (expression, search_1, result_1, search_2, result_2, ., search_n, result_n, default) decode函数比较表达式和搜索字,如果匹配,返回结果;如果不匹配,返回default值;如果未定义default值,则返回空值。 select id as aa,deco... 阅读全文
posted @ 2007-03-20 21:38 ipusr 阅读(2585) 评论(0) 推荐(0) 编辑
摘要: oracle的substr函数的用法 取得字符串中指定起始位置和长度的字符串 substr( string, start_position, [ length ] ) 如: substr('This is a test', 6, 2) would return 'is' substr('This is a test', 6) would return 'is a... 阅读全文
posted @ 2007-03-20 21:27 ipusr 阅读(43115) 评论(8) 推荐(1) 编辑