Oracle 中 concat 使用以及与 || 区别
CONCAT 只能连接两个字符串
The syntax for the concat function is:
concat( string1, string2 )
string1 is the first string to concatenate.
string2 is the second string to concatenate.
--concat只能连接两个字符串,连接多个需要嵌套调用不方便
SQL> select concat('aa','bb') from dual;
CONCAT('AA','BB')
-----------------
aabb
--||直接连接多个字符串
SQL> select 'aa'||'bb'||'cc' from dual;
'AA'||'BB'||'CC'
------
Oracle中CONCAT与||的区别
本文详细介绍了在Oracle数据库中CONCAT函数的使用方法及其与字符串连接符||的区别。CONCAT仅能连接两个字符串,而||可以直接连接多个字符串,提供更灵活的数据处理方式。
1023

被折叠的 条评论
为什么被折叠?



