Oracle中concat与||区别(以及与mysql中concat函数区别)
生活随笔
收集整理的这篇文章主要介绍了
Oracle中concat与||区别(以及与mysql中concat函数区别)
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
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' ------
mysql中concat使用
mysql中concat函数,可以连接多个字符串
语法:concat(str1,str2,str3,...)
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' ------
mysql中concat使用
mysql中concat函数,可以连接多个字符串
语法:concat(str1,str2,str3,...)
总结
以上是生活随笔为你收集整理的Oracle中concat与||区别(以及与mysql中concat函数区别)的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 11 ORA系列:ORA-01791:
- 下一篇: 04 ORA系列:ORA-00984 列