"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 的大作中提到】 : "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”是指什么啊?
【在 j*****n 的大作中提到】 : why don't you try it instead as such question? : : table
s*x
16 楼
第一个兔子最搞笑,呵呵。 你的宿舍生活很生猛!改天俺也写一个宿舍生活。
w*e
17 楼
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”是指什么啊?
【在 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.
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
l*r
24 楼
现在的标准也就是PG-13
t*k
25 楼
truncate = delete + commit ? are you sure? truncae also changes the high watermark