使用 || 操作符
-- 使用 || 操作符
select 'A' || 'B' as str from dual;
-- AB
使用 concat() 函数
-- 一次只能操作2个字符串
select concat('A', 'B') from dual;
-- AB
实例
更新时追加字符串
update t set t.xxx = t.xxx || 'str';
update t set t.xxx = concat(t.xxx, 'str');
-- 使用 || 操作符
select 'A' || 'B' as str from dual;
-- AB
-- 一次只能操作2个字符串
select concat('A', 'B') from dual;
-- AB
update t set t.xxx = t.xxx || 'str';
update t set t.xxx = concat(t.xxx, 'str');
转载于:https://my.oschina.net/taadis/blog/2221274