SQL 字符字段连接(不使用 CONCAT() 或 +)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/354006/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
SQL character field concatenation (without using CONCAT() or +)
提问by CheeseConQueso
I'm trying to concatenate 3 [char(32)] fields:
title1
title2
title3
into one field, but the catch is that I'm using an older version of SQL and it DOES NOT support the CONCAT() subroutine or the + operator
我正在尝试将 3 个 [char(32)] 字段:
title1
title2
title3 连接
到一个字段中,但问题是我使用的是旧版本的 SQL,它不支持 CONCAT() 子例程或 + 运算符
例如:
CONCAT(title1, title2, title3)
(title1 + title2 + title3)
不工作!!!!
还有其他方法吗?
回答by CheeseConQueso
Nevermind... I figured it out...
没关系……我想通了……
its
它的
(title1 || title2 || title3)
(title1 || title2 || title3)