我知道我知道这个数据库术语,但我只是一辈子都记不住它
我一直在绞尽脑汁地想这个词,但就是想不出来。它的描述如下......
假设我有一个数据库,其中一列是一周中的一天,它包含一周中的纯文本日期(即星期一、星期二等)。
为了使该列可分析,我想将一周中的每一天转换为数字(因此对于所有星期一的条目,它将更改为 1,对于星期二的条目,它将更改为 2 等)。
有人可以分享一些关于我所说的术语的知识吗?
多谢。
i've been trying to rack my brain for this term but I just can't think of it. The description of it is as follows...
say I have a database in which a column is the day of the week and it contains plain text days of the week (ie Monday, Tuesday etc).
in order to make this column analyzable, I want to convert each day of the week to a number (so for all entries that have Monday it would change to 1, for those that are Tuesday it would change to 2 etc).
could anyone share some knowledge on what the term is I'm talking about?
Thanks alot.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
创建编号列表称为枚举。
定义枚举:
http://www.google. com/search?sourceid=chrome&ie=UTF-8&q=define+enumeration
,只是为了更好的衡量(它如何融入集合论和组合学:
http://en.wikipedia.org/wiki/Enumeration
creating a numbered list is called enumeration.
define enumeration:
http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=define+enumeration
and just for good measure (how it plays into set theory and combinatorics:
http://en.wikipedia.org/wiki/Enumeration
是的,这似乎是枚举(Enumerations)的一个很好的候选者
此外,我们还为许多数据库提供商提供了 ENUM 数据类型。
例如:
MySQL确实支持ENUM
和
Oracle 根本不支持 ENUM。
您可以从此 堆栈溢出帖子也。
Yes, this seems like a good candidate for an enum(Enumerations )
Also we have a ENUM datatypes available for lot of database providers.
For ex :
MySQL does support ENUM
and
Oracle doesn't support ENUM at all.
you can get more information on this from this stack overflow post also.