Relational Databases and MySQL

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/19

flashcard set

Earn XP

Description and Tags

Flashcards covering key vocabulary and concepts related to relational databases, particularly MySQL, including data types, advantages, and usage within MySQL Workbench.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

20 Terms

1
New cards

MySQL Community Edition

A free, fully featured relational database management system suitable for beginners and small companies, with advantages in ease of use, open-source nature, and a large community providing support.

2
New cards

Oracle DBMS and Microsoft SQL Server

Commercial DBMS products that can be expensive, contrasting with the free MySQL Community Edition.

3
New cards

MySQL Workbench

A visual database tool that simplifies creating databases and tables without extensive SQL knowledge, and aids in visualizing query results and data import/export.

4
New cards

MySQL Data Type Categories

Numeric, string/text, and date/time. Choosing a precise data type helps optimize database size and query speed.

5
New cards

MySQL Integer Data Types

Integer types that store whole numbers with different storage sizes (e.g., tinyint, bigint), each impacting the maximum storable value.

6
New cards

MySQL Fixed Point Numbers

Data types (decimal and numeric) that store numbers with a fixed number of digits before and after the decimal, ensuring accurate results in calculations.

7
New cards

Float (Floating Point Number)

A data type where the decimal point floats, and the numbers are not stored as precise values. Results from arithmetic operations are not exactly accurate.

8
New cards

Fixed Point Number Use Case

Best used when precision is crucial, such as in business applications. Results will always be exactly accurate.

9
New cards

Char and Varchar Data Types

Common ways to store text. Car fields are padded, and varchar allows scaling based on the actual size of the stored values.

10
New cards

Car Data Type

Used when the exact data length is known in advance, like zip codes, due to its consistent storage size.

11
New cards

Binary and Varbinary

Stores strings as bytes; should be used for machine-readable text.

12
New cards

Blob and Text Types

Allows storing large strings.

13
New cards

MySQL Date and Time Data Types

Types like date, datetime, and timestamp allow comparing, automatically adding, or changing dates/times, and maintaining consistent time measurements.

14
New cards

Timestamp Data Type

Often converted between UTC and the database's configured time zone, making it useful for recording database events.

15
New cards

Boolean Data Type

Stores true and false values represented by 0 (false) and 1 (true).

16
New cards

Set and Enum Data Types

Defines a list of acceptable values for a field, with 'set' allowing multiple values and 'enum' allowing only one.

17
New cards

JSON Data Type

Allows for the optimized storage of valid JSON data files.

18
New cards

Spatial Data Types

Used for storing Geographic Information Systems (GIS) data for maps.

19
New cards

Viewing Table Contents

Right-click on a table and choose 'Select Rows - Limit 1000' to view the contents of a table.

20
New cards

Viewing Table Structure

Right-click on the table and go to Table Inspector or click the wrench icon to view the structure of a table.