有两种方式
1、 'xx' || 'xx' || 'aaa'
效果
id | text |
adad1231asdas | 张三,男,23 |
2、concat()函数
注意:oracle只支持两个参数,如果要进行多个字符串的拼接,可以使用多个concat()函数嵌套使用
例: 如果要实现例1的效果:
1、 'xx' || 'xx' || 'aaa'
效果
id | text |
adad1231asdas | 张三,男,23 |
2、concat()函数
注意:oracle只支持两个参数,如果要进行多个字符串的拼接,可以使用多个concat()函数嵌套使用
例: 如果要实现例1的效果:
上一篇:vue v-for循环得到下标
下一篇:sql 查询表注释
java中字符串拼接的多种方式
字符串拼接Description给定3个字符串a, b,
本文转自:http://www.blogjava.net/liuwuping12064915/archive/ELE
字符串拼接是所有程序设计语言都需要的操作。当拼接结果较长时,如何保证效率就成为一个很重要的问题。本文介绍的是Javascript中的字符串拼接,希望对你有帮助,一起来看。
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M