Database - Input validation Flashcards
1
Q
Input validation
A
Checking something to make sure it’s correct and reasonable. - No errors when data it’s added to a database. - Database is more robust (able to cope with errors)
2
Q
Data type
A
Ensures specific data type e.g. Integer
3
Q
Range check
A
Input is in acceptable range. e.g. Age - between 0 and 122
4
Q
Null check
A
Makes sure a database field isn’t left blank
5
Q
Length check
A
Makes sure input is above/below a length limit. e.g. Minimum length of passwords