1.3 Managing Databases Flashcards

1
Q

What is a database system instance?

A

A database system instance is a single executing copy of a database system.

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

How many instances of a database system do personal computers usually run?

A

Personal computers usually run just one instance of a database system.

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

How many instances of a database system do shared computers typically run?

A

Shared computers, such as those used for cloud services, usually run multiple instances of a database system.

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

What does the command CREATE DATABASE DatabaseName do?

A

CREATE DATABASE DatabaseName creates a new database.

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

What does the command DROP DATABASE DatabaseName do?

A

DROP DATABASE DatabaseName deletes a database, including all tables in the database.

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

What is the purpose of the USE DatabaseName command?

A

USE DatabaseName selects a default database for use in subsequent SQL statements.

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

What does the command SHOW DATABASES do?

A

SHOW DATABASES lists all databases in the database system instance.

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

What does the command SHOW TABLES do?

A

SHOW TABLES lists all tables in the default database.

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

What does the command SHOW COLUMNS FROM TableName do?

A

SHOW COLUMNS FROM TableName lists all columns in the TableName table of the default database.

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

What does the command SHOW CREATE TABLE TableName do?

A

SHOW CREATE TABLE TableName shows the CREATE TABLE statement for the TableName table of the default database.

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