MySQL Flashcards
What is SQL?
Structured Query Language. A language used for storing, retrieving and manipulating data in a relational database.
What is MySql?
A popular, open source, database. Think of MySQL as a brand of SQL database.
What is ERD?
An Entity Relationship Diagram. A visual representation of how your database looks and behaves.
What is a Primary Key?
A database column designated to uniquely identify each table record.
What type of data is an INT?
A number. In MySQL an INT can be between -2147483648 to 2147483647 for a signed integer or 0 and 4294967295 for unsigned.
What type of data is an VARCHAR? What does the 255 represent?
A VARCHAR is a string, 255 is the maximum length of that string.
What type of data is DATETIME?
It stores date and time information in the form of a string.
Why is MySQL referred to a relational database?
Because we can store relationships between tables.
What types of relationships exists?
One to One
One to Many
Many to Many
Self Join
What is a Foreign Key?
It’s used to link two tables together. It is the same number as the Primary Key of the row of data in the related table.