有两种方式

1、 'xx' || 'xx' || 'aaa'

select  id 
name || ',' || sex || ',' || age as text
from user

效果

id

text

adad1231asdas

张三,男,23

2、concat()函数

注意:oracle只支持两个参数,如果要进行多个字符串的拼接,可以使用多个concat()函数嵌套使用

例: 如果要实现例1的效果:

select  id 
concat(name,concat(',',concat(sex,concat(',',age)))) as text
from user