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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-01 00:29:37  来源:igfitidea点击:

SQL character field concatenation (without using CONCAT() or +)

sqlstringinformixconcatenationconcat

提问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)