Unit 8 Flashcards

1
Q

structures allow a single command, or a group of statements, to be executed repeatedly

A

Loops

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

structures allow a single command, or a group of statements, to be executed repeatedly

A

While loops

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

There are three loop statements in MySQL

A

while, repeat and loop

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

loop statement is also known as post-test loop.

A

repeat

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

statement that allows you to execute a block of code repeatedly with an additional flexibility of using a loop label.

A

loop

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

This command specifies that the control should pass to the command immediately following the current loop.

A

BREAK

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

is used to exit the flow control construct that has the given label.

A

Leave

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

to terminate a single iteration of a loop you can use

A

CONTINUE

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

statement allows you to skip the entire code under it and start a new iteration.

A

ITERATE

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

means “start the loop again.”

A

ITERATE

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

BREAK and CONTINUE commands affect only the loop that they appear within. ie. when breaking out of an inner loop, control passes to the next statement after the inner loop, which will be within the outer loop.

A

Nesting Loops

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

is a database object that permits the data set generated by a query to be processed one row at a time.

A

Cursor

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

the query is executed and the cursor is populated.

A

Open

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

The cursor declared above is a forward-only cursor. This means that it is only possible to advance through the rows one by one. It is not possible to jump to a specific position, skip rows or to reverse through the data

A

FETCH NEXT

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

Once you have finished working with a cursor it must be _____ to free the resources associated with it and to clear any locks that the cursor has created.

A

close

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

This is because the data structures of the cursor are not released when the cursor is closed. To release these structures and destroy the cursor after closing you should

A

deallocation

17
Q

not affected by changes to the underlying data

A

insensitive cursor

18
Q

are a special type of table that, as the name suggests, are used to hold data temporarily

A

Temporary table

19
Q

temporary table is visible only to the session that it is created from and is dropped automatically when the connection is closed

A

local temporary table

20
Q

temporary tables are available to all users and are automatically dropped when the last user accessing the table disconnects from the database.

A

Global temporary table

21
Q

are variables that have a specific scope and permit a table-like structure to be constructed and populated with many rows of data.

A

Table variable