Oracle中concat与||区别(以及与mysql中concat函数区别)
生活随笔
收集整理的這篇文章主要介紹了
Oracle中concat与||区别(以及与mysql中concat函数区别)
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
Oracle中concat使用以及與||區(qū)別
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只能連接兩個字符串,連接多個需要嵌套調(diào)用不方便 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函數(shù),可以連接多個字符串
語法: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只能連接兩個字符串,連接多個需要嵌套調(diào)用不方便 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函數(shù),可以連接多個字符串
語法:concat(str1,str2,str3,...)
總結(jié)
以上是生活随笔為你收集整理的Oracle中concat与||区别(以及与mysql中concat函数区别)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 11 ORA系列:ORA-01791:
- 下一篇: BigDecimal类setScale方