Ch. 5 Flashcards
Commands that modify data are called ________.
data manipulation language
What command adds new rose to a table; can include a subquery to copy rows from an existing table?
INSERT
What command adds data to, or modifies data in, existing rows?
UPDATE
What command removes rows from a table?
DELETE
What command saves changed data in a table permanently?
COMMIT
What command allows “undoing” uncommitted changes to data?
ROLLBACK
What command enables setting markers in a transaction?
SAVEPOINT
What command prevents other users from making changes to a table?
LOCK TABLE
What command creates a shared lock on a table to prevent another user from making changes to data in specified columns?
SELECT …
FOR UPDATE
A _______ ________ in an SQL command instructs Oracle 11g to substitute a value in place of the variable at the time the command is actually executed.
Substitution Variable
All ______ commands you execute remain in a transaction queue until you save the actions permanently or undo the actions.
DML
A ______ is a term used to describe DML statements representing data actions that should logically be performed together.
transaction
Which of the following is a correct statement?
a. A commit is issued implicitly when a user exits SQL developer or SQL*Plus.
b. A commit is issued implicitly when a DDL command is executed.
c. A commit is issued automatically when a DML command is executed.
d. All of the above are correct.
e. Both a and b are correct
f. Both a and c are correct
e. Both a and b are correct
Which of the following is a valid SQL statement?
a. SELECT * WHERE amid = ‘J100’ FOR UPDATE;
b. INSERT INTO homework10 VALUES (SELECT * FROM acctmanager);
c. DELETE amid FROM acctmanager;
d. rollback;
e. all of the above
d. rollback;
Which of the following commands can be used to add rows to a table?
a. INSERT INTO
b. ALTER TABLE ADD
c. UPDATE
d. SELECT ….. FOR UPDATE
a. INSERT INTO