1.只是两个字段进行拼接
select a || b from table
2.拼接时在中间或末尾加上内容
头部加:select '字段1' || a || b from table
中间加:select a || '中间' || b from table
尾部加: select a || b || '尾部' from table
注: 在SQL语句中 || 就相当于程序中的加号。
1.只是两个字段进行拼接
select a || b from table
2.拼接时在中间或末尾加上内容
头部加:select '字段1' || a || b from table
中间加:select a || '中间' || b from table
尾部加: select a || b || '尾部' from table
注: 在SQL语句中 || 就相当于程序中的加号。