What is the optimal length for an email address in a database?

后端 未结 8 2167
轮回少年
轮回少年 2020-11-28 05:23

Here is an extracted portion of my query, reflecting the EMAIL_ADDRESS column data type and property:

EMAIL_ADDRESS CHARACTER VARYING(20) NOT NU         


        
8条回答
  •  被撕碎了的回忆
    2020-11-28 05:32

    The maximum length of an email address is 254 characters.

    Every email address is composed of two parts. The local part that comes before the '@' sign, and the domain part that follows it. In "user@example.com", the local part is "user", and the domain part is "example.com".

    The local part must not exceed 64 characters and the domain part cannot be longer than 255 characters.

    The combined length of the local + @ + domain parts of an email address must not exceed 254 characters. As described in RFC3696 Errata ID 1690.

    I got the original part of this information from here

提交回复
热议问题