本文介绍了如何合并到列上的colums值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
从VehicleMaster中选择CarID [ID],CarName [Name],CarNumber,其中CarStatus = 0
这是我的查询
我想合并到一列中的列值.我想在-"列上输入汽车号和汽车名称
hey guys,
select CarID [ID],CarName [Name],CarNumber from VehicleMaster where CarStatus=0
this is my query
i want to merge to column value in one column. i want to carnumber and carname in on column "-"
推荐答案
SELECT CarNumber + '-' + CarName AS [Name and number] FROM VehicleMaster
select CarID [ID]||'-'||CarName [Name],CarNumber from VehicleMaster where CarStatus=0
在Sql
中=======
in Sql
=======
select CarID [ID]+'-'+CarName [Name],CarNumber from VehicleMaster where CarStatus=0
这篇关于如何合并到列上的colums值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!