TRUNCATE TABLE DEPT;
Which three are true about the SQL statement? (Choose three.)
A. It releases the storage space used by the table.
B. It does not release the storage space used by the table.
C. You can roll back the deletion of rows after the statement executes.
D. You can NOT roll back the deletion of rows after the statement executes.
E. An attempt to use DESCRIBE on the DEPT table after the TRUNCATE statement
executes will display an error.
F. You must be the owner of the table or have DELETE ANY TABLE system privileges to
truncate the DEPT table
Answer: B, D, F
Explanation : does not release the storage space used by the table,
Can not rollback the deletion of rows after the statement executes,
You must be the owner of the table or have DELETE ANY TABLE
system privilege to truncate the DEPT table.
Incorrect answer :
A is not true
C is not true
E is not true
truncate table不是可以release空间的吗?为什么选b啊?应该是选a?
请各位dx指点一下,谢谢!
10g.
The REUSE STORAGE or DROP STORAGE options of the TRUNCATE statement control whether space currently allocated for a table or cluster is returned to the containing tablespace after truncation. The default option, DROP STORAGE, reduces the number of extents allocated to the resulting table to the original setting for MINEXTENTS. Freed extents are then returned to the system and can be used by other objects.
[ 本帖最后由 ritybaby 于 2008-5-1 17:41 编辑 ]