如何在oracle中将2列合并(组合)为1列? [英] How to merge (combine) 2 columns into 1 in oracle?
本文介绍了如何在oracle中将2列合并(组合)为1列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有 3 个文本字段,用户在其中键入需要合并的表名和 2 个列名.
I have 3 textfields where user types table name and 2 column names which need to be merged.
我应该如何将 2 个列值合并(组合)为 1 个?
How should I merge (combine) 2 column values into 1?
我使用 oracle 11g 企业版
I use oracle 11g enterprise
推荐答案
concatenate?
concatenate?
select col1 || ' ' || col2 from tablex
这篇关于如何在oracle中将2列合并(组合)为1列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文