由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - 新手一问,关于delete和truncate table
相关主题
a question on database designtrigger vs. log ?
如何让SQL 2005 CLR Trigger返回结果给Stored Procedure用?怎么去除duplicates
truncate和delete在ORACLE里有什么区别?how to include record deleted date into trigger?
什么时候不用索引foreign key reference to two tables? how to do it?
问一下数据库里的entity和object的区别Database Interview Questions
how to list all tables in my account?How to get schema?
In toad, How to move the tables to a schema in oracle?
请教dev&test 和 production environment sync的问题各位老大,管理数据库的用户,这样行吗?
相关话题的讨论汇总
话题: truncate话题: table话题: delete话题: schema话题: objects
进入Database版参与讨论
1 (共1页)
k*******1
发帖数: 22
1
"Neither the DELETE statement without a WHERE clause nor the TRUNCATE
TABLE statement affect the schema structure of the table or related
objects."
这里的“the schema structure of the table or related objects”是指什么啊?
a*******t
发帖数: 891
2
columns, index, permission etc

【在 k*******1 的大作中提到】
: "Neither the DELETE statement without a WHERE clause nor the TRUNCATE
: TABLE statement affect the schema structure of the table or related
: objects."
: 这里的“the schema structure of the table or related objects”是指什么啊?

k*******1
发帖数: 22
3
truncate table了,column names, index, permission都还在的???
就是说如果truncate table了以后又想加入数据到这个table,就不用再create table
了,直接
insert就行??

【在 a*******t 的大作中提到】
: columns, index, permission etc
B*****g
发帖数: 34098
4
truncate <> drop

table

【在 k*******1 的大作中提到】
: truncate table了,column names, index, permission都还在的???
: 就是说如果truncate table了以后又想加入数据到这个table,就不用再create table
: 了,直接
: insert就行??

j*****n
发帖数: 1781
5
why don't you try it instead as such question?

table

【在 k*******1 的大作中提到】
: truncate table了,column names, index, permission都还在的???
: 就是说如果truncate table了以后又想加入数据到这个table,就不用再create table
: 了,直接
: insert就行??

B*****g
发帖数: 34098
6
要厚道

【在 j*****n 的大作中提到】
: why don't you try it instead as such question?
:
: table

w*********e
发帖数: 5286
7
truncate = delete + commit
except
no DML triggers will be fired in truncate.
you cannot rollback, it removes all rows in a table, but not the schema,
privileges, etc.
truncate is usually much faster than delete cuz it does not need to save all
rows in undo space.

【在 k*******1 的大作中提到】
: "Neither the DELETE statement without a WHERE clause nor the TRUNCATE
: TABLE statement affect the schema structure of the table or related
: objects."
: 这里的“the schema structure of the table or related objects”是指什么啊?

G********d
发帖数: 593
8

all
undo space 。。。。。
还是说log比较prof一点吧...

【在 w*********e 的大作中提到】
: truncate = delete + commit
: except
: no DML triggers will be fired in truncate.
: you cannot rollback, it removes all rows in a table, but not the schema,
: privileges, etc.
: truncate is usually much faster than delete cuz it does not need to save all
: rows in undo space.

c*****y
发帖数: 75
9
truncate 不写入log
delete 是一条一条删除 可以恢复的
n*******r
发帖数: 425
10
truncate ddl
delete is dml
"
truncate = delete + commit
except
no DML triggers will be fired in truncate
"
not true, truncate set hwm back to original points so it cleans up the space
immediately, unless you specify REUSE STORAGE clause
t********k
发帖数: 808
11
truncate = delete + commit ?
are you sure?
truncae also changes the high watermark
1 (共1页)
进入Database版参与讨论
相关主题
各位老大,管理数据库的用户,这样行吗?问一下数据库里的entity和object的区别
which one is faster? truncate or delete?how to list all tables in my account?
请教一个oracle的quick questionIn toad,
delete请教dev&test 和 production environment sync的问题
a question on database designtrigger vs. log ?
如何让SQL 2005 CLR Trigger返回结果给Stored Procedure用?怎么去除duplicates
truncate和delete在ORACLE里有什么区别?how to include record deleted date into trigger?
什么时候不用索引foreign key reference to two tables? how to do it?
相关话题的讨论汇总
话题: truncate话题: table话题: delete话题: schema话题: objects