码迷,mamicode.com
首页 > 其他好文 > 详细

把多行转成一行 用空格分开

时间:2015-02-03 12:59:18      阅读:103      评论:0      收藏:0      [点我收藏+]

标签:

select
t1.ID as 销售合同标识,
t1.BillNO as 单据号,
t1.orderNo as 合同编号,
(select distinct ‘【‘ + salesorderno+‘】‘+‘ ‘ from SalesCompactOrder where parentid = t1.id for xml path(‘‘)) 销售订单号,
t1.Purchase as 购货单位,
t1.OrderPurchase as 订单购货单位,
t1.summoney as 合同总金额,
t1.Industry as 行业,
t1.Area as 区域,
t1.ReceiptType as 收款方式,
t1. PayTime as 付款时间,
t1. MakeTime as 制单时间,
t1. Employer as 业务员,
t1. SalesTime as 合同签订日期,
t1. SumCount as 合同总数量,
t1. passcount as 合同已勾数量,
t1. count as 合同未勾数量,
t1. SalesType as 合同类型,
t1. zhaiyao as 摘要
from SalesCompact t1

把多行转成一行 用空格分开

标签:

原文地址:http://www.cnblogs.com/YyuTtian/p/4269513.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!