将多个行值附加到单个行中的单个字段中 [英] append multiple row values into a single field in a single row

查看:54
本文介绍了将多个行值附加到单个行中的单个字段中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我实际上想要"转置"一些数据。  我在表中列出了一些公司名称,我希望将它们附加到另一个表中的单行中的单个字段中,并用逗号分隔。  是否有一些通用的
代码可以帮助我实现这个目标?

Hi, I effectively want to "transpose" some data.   I have some company names listed in a table and I would like to get them appended into a single field in a single row in another table and simply separated by commas.  Is there some generic code that will help me achieve this?

例如表格列表如下: -

eg table lists as follows:-

" Company A"

"Company A"

" Company B"

"Company B"

" Company C"

"Company C"

etc

我希望将这些数据放入显示为"公司A,公司B,公司C"的单个字段中。等等

and I wish to get that data into a single field showing as "Company A, Company B, Company C" etc

谢谢

Dan

推荐答案

嗨丹,

看看这个简单的功能是否符合您的要求:  SimpleCSV()

See if this simple function will do what you want: SimpleCSV()

您应该能够在UPDATE查询中使用它。

You should be able to use it in an UPDATE query.

希望它有所帮助......

Hope it helps...


这篇关于将多个行值附加到单个行中的单个字段中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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