自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

TRUNCATE 中文man頁面

系統(tǒng)
TRUNCATE 快速地從一個表中刪除所有行。它和無條件的 DELETE 有同樣的效果,不過因為它不做表掃描,因而快得多。 在大表上最有用。

NAME

TRUNCATE - 清空一個表

SYNOPSIS

TRUNCATE [ TABLE ] name

DESCRIPTION 描述

TRUNCATE 快速地從一個表中刪除所有行。它和無條件的 DELETE 有同樣的效果,不過因為它不做表掃描,因而快得多。 在大表上最有用。  

PARAMETERS 參數(shù)

name

 要清空的表名字(可以有模式修飾)。

NOTES 注意


 如果從其它表有到這個表的外鍵引用,那么就不能使用 TRUNCATE。 在這種情況下檢查有效性要求進行表掃描,而 TRUNCATE 的概念是不做這樣的事情。

TRUNCATE 不會運行任何在該表上存在的 ON DELETE 觸發(fā)器。  

EXAMPLES 例子


 截斷表 bigtable∶

TRUNCATE TABLE bigtable;

COMPATIBILITY 兼容性


 SQL 標準里沒有 TRUNCATE 。  

#p#

NAME

TRUNCATE - empty a table

SYNOPSIS

TRUNCATE [ TABLE ] name

DESCRIPTION

TRUNCATE quickly removes all rows from a table. It has the same effect as an unqualified DELETE but since it does not actually scan the table it is faster. This is most useful on large tables.  

PARAMETERS

name
The name (optionally schema-qualified) of the table to be truncated.

NOTES

TRUNCATE cannot be used if there are foreign-key references to the table from other tables. Checking validity in such cases would require table scans, and the whole point is not to do one.

TRUNCATE will not run any user-defined ON DELETE triggers that might exist for the table.  

EXAMPLES

Truncate the table bigtable:

TRUNCATE TABLE bigtable;

COMPATIBILITY

There is no TRUNCATE command in the SQL standard.

責任編輯:韓亞珊 來源: CMPP.net
相關(guān)推薦

2011-08-24 16:48:36

man中文man

2011-08-15 10:21:09

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-15 15:02:31

usleep中文man

2011-09-23 13:59:40

find中文man

2011-08-12 09:17:57

deallocvt中文man

2011-08-25 17:24:54

puts中文man

2011-07-15 16:58:36

ac中文man

2011-08-11 18:32:21

cp中文man

2011-08-23 11:34:26

ipcs中文man

2011-08-25 10:16:02

lmhosts中文man

2011-08-24 15:29:06

grant中文man

2011-08-25 17:32:40

setbuffer中文man

2011-08-25 16:50:08

getc中文man

2011-08-25 16:52:54

getchar中文man

2011-08-25 17:03:51

pclose中文man

2011-08-25 16:22:29

fputc中文man

2011-08-25 16:28:50

fread中文man

2011-08-25 17:27:58

rewind中文man
點贊
收藏

51CTO技術(shù)棧公眾號