입력값 검증 Flashcards

1
Q

해당 필드가 반드시 입력이 되야해서

절대로 비어있으면 안될 때,

쓰기 적절한 Validation Rule은?

A

required

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

값이 완벽하게 알파벳으로만 이루어질 때

A

alpha

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

값이 알파벳 + 숫자로만 이뤄질 때

A

alpha_num

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

사이즈가 딱 50이 여야만 할 때,

Validation Rule은?

A

size:50

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

값이 테이블에 존재해야한다면

A

exists:tableName

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

값이 테이블에 존재하고, 고유한 값이여야 한다면

A

unique:tableName

How well did you know this?
1
Not at all
2
3
4
5
Perfectly