如何使用VB.NET连接ms访问中的行 [英] How do I concatenate rows in ms access using VB.NET

查看:52
本文介绍了如何使用VB.NET连接ms访问中的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个这样的表,我希望以这样的方式转换它,使得具有相同操作类型的操作,机器和附件应该连接广告,他们的SAM将被添加:

I have a table like this and i want to convert it in such a way that the operations with same opration type,Machine and attatchment should concatenate ad their SAM will be added:

Oprn_ID	Operation_Type	Operation_Name	Machine_Type	Attatchment	SAM
1	Bottom Fold	A	SNLS	NO	1.2
2	Baby Overlock	B	5TOLK	NO	0.8
3	Gathering	C	SNLS	1/16 Folder	0.6
4	Panel Attach	D	SNLS	NO	0.9
5	Panel Attach	E	SNLS	NO	0.5
6	Overlock	F	5TOLK	NO	0.7
7	Pin Stitch	G	SNLS	NO	0.9
8	Elastic Finish	H	SNLS	1/16 folder	0.85
9	Bottom Fold	I	SNLS	NO	0.42
10	Gathering	J	SNLS	1/16 Folder	0.78
11	Panel Attach	K	SNLS	NO	0.56
12	Attachment	L	SNLS	NO	0.14
13	Elastic Finish	M	SNLS	NO	0.96
14	Overlock	N	5TOLK	NO	0.76



















喜欢这个












like this

Operation_Type	Operation_Name	Machine_Type	Attatchment	SAM
Bottom Fold	A + I	SNLS	NO	1.62
Gathering	C + J	SNLS	1/16 Folder	1.38
Baby Overlock	B	5TOLK	NO	0.8
Panel Attach	D + E + K	SNLS	NO	1.96
Overlock	F + N	5TOLK	NO	1.46
Pin Stitch	G	SNLS	NO	0.9
Elastic Finish	H	SNLS	1/16 folder	0.85
Attachment	L	SNLS	NO	0.14
Elastic Finish	M	SNLS	NO	0.96





我的尝试:



我没有任何想法这样做



What I have tried:

I dont have any idea to do this

推荐答案

在select语句中的列之间使用&
use & between the column in your select statement


这篇关于如何使用VB.NET连接ms访问中的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆