MySQL Flashcards

(34 cards)

1
Q

MySQL is a

A

relational database management system (RDBMS)

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

SQL is a database language for

A
  • creating database and table structures
  • performing data manipulation and administration
  • querying the database to extract useful information
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

SQL is a

A

nonprocedural language

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

what does SQL is a nonprocedural language mean

A

the user specifies what must be done, but not how.
where the data is stored isn’t important, only the specified relations + relationships matter

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

t/f: all relational DBMS software supports SQL

A

true

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

different SQL DBMS software

A
  • oracle
  • mySQL
  • MS SQL Server
  • DB2
  • MS Access
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

many database vendors have developed

A

extensions

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

extensions

A
  • basic, simple vocab of < 100 ‘words’
  • different dialects w minor differences
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

categories of SQL commands

A

Data Definition Language (DDL) and Data Manipulation Language (DML)

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

DDL

A

commands that define a database
- includes creating, altering, dropping tables and stored procedures, and establishing constraints

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

examples of DDL commands

A

CREATE TABLE, set PRIMARY KEY

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

DML

A

commands that are used to manipulate data and extract information

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

examples of DML commands

A

select, update, insert, delete

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

mySQL data types

A

numeric, date and time, string

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

primary numeric types

A

tinyint, smallint, mediumint, int, bigint, decimal(M, D)

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

primary date and time types

A

date and datetime

17
Q

format of datetime

A

YYYY-MM-DD HH:MM:SS

18
Q

invalid dates and times are converted to

A

zero values 0000-00-00

19
Q

built-in date and time functions

A

now(), curdate(), datediff(), intervaldate(), time(), day(), year(), month()

20
Q

primary string types

A

char(n), varchar(n), blob, text, enum

21
Q

values that exceed n characters in length are

22
Q

blob

A

used for large binary strings of data

23
Q

text

A

large character strings of data

24
Q

enum

A

string object with value chosen from list of permitted values that is specified at table creation

25
primary DML commands
data retrieval ('standard' queries) and action queries
26
standard query ex
select
27
action queries
insert, update, delete
28
SQL statements are case
insensitive
29
enclose non-numeric values (string, date/time) in
single quotation marks
30
general SELECT format
select [distinct | all] (* | column1[AS new_name] [..] } from table_name [alias] [where conditions] [group by column_list] [having condition] [order by column_list]
31
{} and [], which is required
{}, [] is optional
32
insert statement format
insert into tablename(column1, column2) values(value1, value2)
33
update statement format
update tablename set column1=value1, column2=value2 where criteria
34
delete statement format
delete from table where criteria