什么是格式映射表 [英] what is the format mapping table

查看:115
本文介绍了什么是格式映射表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一张映射表。它包含以下字段和记录。

Hi,
I have a mapping table. It contains following fields and Records.

ID     LocationID    DeviceID
1 	 1	      16,15,
3	 2	      17,15,
4	 3	      16,18,
5	 4	      15,17,



只有一个地点有不同的设备。这就是为什么我用逗号分隔符保存它。

这是一种正确的方法。否则,我们将其保存到每个设备ID的不同行中,如下所示。


Only one location has differen devices. That's why I save it with comma seperator.
That is a correct method or not. Otherwise we save it in to different rows for every device id like following.

ID     LocationID    DeviceID
1	1	       16
2	1	       15
3	2	       17
4	2	       15
5	3	       16
6       3              18
7       4              15
8       4              17



什么是正确的方法?有人可以建议我吗?


What is the correct method? Anybody can suggest me?

推荐答案

为了便于使用和性能原因,你应该总是把一个数据放在一列中。
You should always put a single piece of data in a column, for ease of use and performance reasons.


这篇关于什么是格式映射表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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