Chapter 06 Manipulating Data Flashcards

1
Q

The [Blank] statement is used to add new rows to a

table.

A

INSERT
INSERT INTO [schema.]table_name [(column_list)]
VALUES (data_values)
You can insert using subqueries

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

The [Blank] statement is used to modify existing rows in a table

A
UPDATE
UPDATE 
SET  = 
[, =  … … …]
[WHERE ]
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The [Blank] statement is used to remove rows from a table.

A

DELETE
DELETE [FROM]
[WHERE ]

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

What is the DESCRIBE command?

A

list the table columns, the columns are listed in that order.

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

COMMIT statement

A

Ends the current transaction, making data changes permanent

and visible to other sessions.

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

ROLLBACK statement

A

Undoes all data changes in the current transaction.

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

ROLLBACK TO SAVEPOINT

A

Undoes all data changes in the current transactions
going chronologically backward to the optionally
named savepoint.

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

SAVEPOINT

A

Sets an optional marker within the transaction to be

able to go back to this position if needed.

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