unit 8 Flashcards

1
Q

A 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

are commonly used with cursors to process a set of data one row at a time

A

WHILE loops

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

statement checks the expression after the execution of statements therefore the ——– statement is also known as post-test loop

A

REPEAT loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
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
5
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
6
Q

If you wish to terminate a single iteration of a loop

A

CONTINUE

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

This command immediately stops the current iteration and rechecks the loop’s condition. If the condition is still true, the loop is restarted.

A

CONTINUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
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
9
Q

Loops can be ——- to provide more complex looping structures. When nesting loops, BREAK and CONTINUE commands affect only the loop that they appear within.

A

Nesting

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

A ——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
11
Q

A cursor cannot be used until it has been opened using the ——statement

A

OPEN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
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
13
Q

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

A

Closing a Cursor

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

To release these structures and destroy the cursor after closing you should ——– it.

A

Deallocating a Cursor

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

cursor is not affected by changes to the underlying data.

A

insensitive

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

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

A

Temporary Tables

17
Q

is visible only to the session that it is created from and is dropped automatically when the connection is closed. Other users cannot access the table, although they may create their own temporary with the same name

A

local temporary table

18
Q

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

A

Global temporary tables