Home> Common Problem> body text

What is the difference between format and input mask attributes in table fields

藏色散人
Release: 2023-01-13 00:29:54
Original
6760 people have browsed it

The difference between format and input mask attributes in table fields is: 1. Different applicability, mask is used for input, format is used for display; 2. Different functions, mask can be used to protect data , you can also set a fixed format for input, and the format is mainly used to set the type of data, which determines whether the execution of the query is valid.

What is the difference between format and input mask attributes in table fields

The operating environment of this article: Windows 7 system, Dell G3 computer.

The difference between "format" and "input mask"

1. Different applicability

The mask is used for input, and the format is used for display.

2. Different functions

Mask can be used to protect data, and a fixed format can also be set for input.

Format is mainly used to set the type of data. It determines whether the execution of the query is valid, especially on the join between tables. When the types do not match, the query will not be executed.

Extended information

The mask in access displays the editing characters that guide data input, restricting the type and form of data entered in the field.

Masks are used when designing tables, and their effects are obvious, such as when applying rules such as ID cards and passwords.

1. For the input mask of "Only 4 digits can be entered", fill in "0000".

2. For the input mask of "Only 4 digits or symbols can be entered", fill in "AAAA".

3. For the input mask of "Only enter 4 digits or spaces", fill in "9999" or "

#".

For more related knowledge, please visitPHP Chinese website

! ###

The above is the detailed content of What is the difference between format and input mask attributes in table fields. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!