宇筱博客

  • 解决办法
  • 学无止境
  • 记录时光
  • 百宝箱
宇筱博客
点滴记忆,汇聚成海。
  1. 首页
  2. 解决办法
  3. 正文

Oracle中concat与||区别(以及与MySQL中concat函数区别)

2021年1月2日 500点热度 0人点赞 0条评论
--concat只能连接两个字符串,连接多个需要嵌套调用不方便
SQL> select concat('aa','bb') from dual;
  CONCAT('AA','BB')
-----------------
aabb
--||直接连接多个字符串
SQL> select 'aa'||'bb'||'cc' from dual;
  'AA'||'BB'||'CC'
------

MySQL中concat函数,可以连接多个字符串

select concat(str1,str2,str3,...) from dual;
--str1str2str3

原文链接:ttps://blog.csdn.net/baidu_37107022/article/details/78368388

标签: 暂无
最后更新:2021年1月2日

小渔民

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2025 宇筱博客. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

豫ICP备15017825号-2