Databases Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is VARCHAR

A

Used to store non-numeric values that can be up to 255 characters and vachar will only use the space required for each record that is stored in the database.

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

What is CHAR

A

Used to store non-numeric values, however, it will use up all space for the set number regardless of what value is added

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

What is INT

A

Used to store integers and columns that you will find mostly using the INT are things like a unique identifier for each table.

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

What is BIGINT

A

Biginit would be used for columns that would need to store huge numbers. In most cases, you wouldn’t need BIGINT, but if you wanted to store something like Facebook I’d when using Facebook’s API, since they have over a billion users the id will need to be a data type of BIGINT

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

What is TINYINT

A

TINYINT would be good to use for numbers that will be relatively small. A good example of something that would use a TINYINT is user level identifier (0 - inactive user, 1 - active user, 9 - admin)

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

What is a FLOAT

A

Used to store point numbers (numbers that need to have decimal places)

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

What is TEXT

A

Uses to store large amount of text, like a description, message or comment. Use this for any text that VARCHAR() is to small to handle

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

What is DATETIME

A

Used to store a date and time in the format YYYY-MM-DD

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