简体   繁体   English

EWL验证的电话号码字段的正确数据类型是什么?

[英]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.

相关问题 存储数组的字段的数据类型应该是什么 - what should be the datatype of field to store arrays 在 SQL Server 2005 中应该使用什么数据类型来存储电话号码? - What datatype should be used for storing phone numbers in SQL Server 2005? 除了使用varchar数据类型外,哪种数据类型用于在SQL Server中存储二进制数(base2数字) - What datatype is used to store binary number (base2 numbers) in SQL Server other than using varchar datatype 什么是正确的像数字的图案 - What is correct like pattern for number 对于在源和目标中为 FLOAT 的字段,我应该在 Informatica 中保留什么数据类型? - What should I keep as datatype in Informatica for a field that is FLOAT in source and target? 什么是存储99.99以下的简单数字的最佳数据类型? - What would be the best datatype to use to store a simple number up to 99.99 Exception变量是什么数据类型? - What datatype is the Exception variable? 用户为SQL字段提供的数据类型 - datatype supplied by user for SQL field 什么是正确的日期函数才能计算每周发生的次数 - what is the correct date function to count the number of occurrences per weekly basis 我应该对文本字段使用哪种SQL Server数据类型,而该字段会被JOINED,“ LIKE'd”和被查询很多? - What SQL Server DataType should I use for a Text field which will be JOINED, “LIKE'd” and Queried against a lot?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM