日期:2014-05-16  浏览次数:20384 次

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(小明)