[英]What is the correct datatype for an EWL-validated Phone Number field?
What should the data type of a phone number be in SQL Server? SQL Server中电话号码的数据类型应该是什么? varchar?
varchar? What length?
什么长度 And, where do I find this sort of information for EWL for similar fields (zip code, etc.)?
并且,在哪里可以找到类似字段的EWL的此类信息(邮政编码等)?
Yes, use varchar
for phone numbers. 是的,使用
varchar
作为电话号码。 I'd probably use something like varchar(25)
. 我可能会使用
varchar(25)
类的东西。 As far as I know there is no documentation on which SQL Server data type to use for each EWL data type. 据我所知,没有关于每种EWL数据类型使用哪种SQL Server数据类型的文档。 One thing you can do is look at the validation methods in the
Validator
class and see what they are capable of returning. 您可以做的一件事是查看
Validator
类中的验证方法,看看它们可以返回什么。 I know that's not an ideal solution but I think it's your best bet right now. 我知道这不是理想的解决方案,但我认为这是您目前最好的选择。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.