枚举发生时如何设计表 [英] how to design Tables when enum occurs

查看:67
本文介绍了枚举发生时如何设计表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我将设计一个表(Table1)并具有如下的Table1 Column语句:`CustStatus` enum(``Active'',``Hold'',``Terminated'')DEFAULT NULL,''.
请帮助我在表中进行设计.

解决方案

枚举器仅是整数值的描述,因此表中的CustStatus列应为整数.

枚举器仅是整数值的描述,因此表中的CustStatus列应为整数.


hi all,


i''m going to design a table(Table1) and have Table1 Column statement like this: `CustStatus` enum(''Active'',''Hold'',''Terminated'') DEFAULT NULL,''.
please help me out to design this in table.

解决方案

Enumerators are just descriptions for integer values, therefore the CustStatus column in your table should be an integer.


Enumerators are just descriptions for integer values, therefore the CustStatus column in your table should be an integer.


这篇关于枚举发生时如何设计表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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