ORACLE 查询数字串拼接
在SQL server 2000等中,我们常用的字符串拼接方法就是:
?? SELECT A.col1 + A.col2 FROM TEST A
但是这个方法在ORACLE中却不可行了,只能用另一种方式来实现了
?? select t.name ||'('||? t.chinese_name ||')'
?? from essp_hr_employee_main_t t
这样子查询结果为:
??? XiaoMing(小明)
发布时间: 2012-07-23 09:42:19 作者: rapoo
ORACLE 查询数字串拼接
在SQL server 2000等中,我们常用的字符串拼接方法就是:
?? SELECT A.col1 + A.col2 FROM TEST A
但是这个方法在ORACLE中却不可行了,只能用另一种方式来实现了
?? select t.name ||'('||? t.chinese_name ||')'
?? from essp_hr_employee_main_t t
这样子查询结果为:
??? XiaoMing(小明)