SQL server 字段合并CAST(org_no AS VARCHAR(20))+CAST(page_no AS VARCHAR(20))+CAST(djlb_no AS VARCHAR(20))
Posted gzhbk
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SQL server 字段合并CAST(org_no AS VARCHAR(20))+CAST(page_no AS VARCHAR(20))+CAST(djlb_no AS VARCHAR(20))相关的知识,希望对你有一定的参考价值。
sql server 字段合并(CAST)
----------------------
select (CAST(org_no AS VARCHAR(20))+CAST(page_no AS VARCHAR(20))+CAST(djlb_no AS VARCHAR(20))) from ERP_BASIC_BILLNO_PREFIX where org_num=#orgNum and page_name=#pageName and djlb_name=#djlbName;")
字段1+字段2
oracle 字段合并(CONCAT)
----------------------
select (Concat(Concat(CODE,‘_‘),NAME)) 合并结果集 from GoodsCate
mysql 字段合并(CONCAT)
----------------------
SELECT declare_type_id,support_model,project_name,CONCAT(declare_type_id,support_model,project_name) from gf_index;
以上是关于SQL server 字段合并CAST(org_no AS VARCHAR(20))+CAST(page_no AS VARCHAR(20))+CAST(djlb_no AS VARCHAR(20))的主要内容,如果未能解决你的问题,请参考以下文章
从 SQL Server 中的 XML 数据类型字段中提取数据