047-207

207. You executed the following SQL statements in the given order:
CREATE TABLE orders
(order_id NUMBER(3) PRIMARY KEY,order_date DATE, customer_id number(3));
INSERT INTO orders VALUES (100,'10mar2007',222);
ALTER TABLE orders MODIFY order_date NOT NULL;
UPDATE orders SET customer_id=333;
DELETE FROM order;
The DELETE statement results in the following error:
ERROR at line 1:
ORA00942:table or view does not exist
What would be the outcome?
A. All the statements before the DELETE statement would be rolled back.
B. All the statements before the DELETE statement would be implicitly
committed within the session.
C. All the statements up to the ALTER TABLE statement would be committed and
the outcome of UPDATE statement would be rolled back.
D. All the statements up to the ALTER TABLE statement would be committed and
the outcome of the UPDATE statement is retained uncommitted within the
session.
Answer: D
Statements:声明
ALTER TABLE 属于DDL语句,会隐式提交.
Remember that an ALTER TABLE statement is a DDL statement, and that when
any DDL statement executes, it causes an implied commit event to occur.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/11312660/viewspace-718984/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/11312660/viewspace-718984/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值