成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

DELETE 中文man頁面

系統(tǒng)
DELETE 從指明的表里刪除滿足 WHERE 子句的行。 如果 WHERE 子句不存在, 效果是刪除表中所有行。結(jié)果是一個(gè)有效的空表。

NAME

DELETE - 刪除一個(gè)表中的行

SYNOPSIS

DELETE FROM [ ONLY ] table [ WHERE condition ]

DESCRIPTION 描述

DELETE 從指明的表里刪除滿足 WHERE 子句的行。 如果 WHERE 子句不存在, 效果是刪除表中所有行。結(jié)果是一個(gè)有效的空表。

Tip: 提示: TRUNCATE [truncate(7)] 是一個(gè) PostgreSQL 擴(kuò)展, 它提供一個(gè)更快的從表中刪除所有行的機(jī)制。


 缺省時(shí) DELETE 將刪除所聲明的表和所有它的子表的記錄。 如果你希望只更新提到的表,你應(yīng)該使用 ONLY 子句。


 要對表進(jìn)行刪除,你必須對它有 DELETE 權(quán)限,同樣也必須有 SELECT 的權(quán)限,這樣才能對符合 condition  的值進(jìn)行讀取操作。  

PARAMETERS 參數(shù)

table

 一個(gè)現(xiàn)存表的名字(可以有模式修飾)。
condition

 一個(gè)返回 boolean 類型值的值表達(dá)式,它判斷哪些行需要被刪除。

OUTPUTS 輸出


 成功時(shí),DELETE 命令返回形如

DELETE count


 的標(biāo)簽。 count 是被刪除的行數(shù)。 如果 count 為 0,沒有行匹配 condition (這個(gè)不認(rèn)為是錯(cuò)誤)。  

EXAMPLES 例子


 刪除所有電影(films)但不刪除音樂(musicals):

DELETE FROM films WHERE kind <> 'Musical';


 清空表 films:

DELETE FROM films;

#p#

NAME

DELETE - delete rows of a table

SYNOPSIS

DELETE FROM [ ONLY ] table [ WHERE condition ]

DESCRIPTION

DELETE deletes rows that satisfy the WHERE clause from the specified table. If the WHERE clause is absent, the effect is to delete all rows in the table. The result is a valid, but empty table.

Tip: TRUNCATE [truncate(7)] is a PostgreSQL extension which provides a faster mechanism to remove all rows from a table.

By default, DELETE will delete rows in the specified table and all its subtables. If you wish to only delete from the specific table mentioned, you must use the ONLY clause.

You must have the DELETE privilege on the table to delete from it, as well as the SELECT privilege for any table whose values are read in the condition.  

PARAMETERS

table
The name (optionally schema-qualified) of an existing table.
condition
A value expression that returns a value of type boolean that determines the rows which are to be deleted.

OUTPUTS

On successful completion, a DELETE command returns a command tag of the form

DELETE count

The count is the number of rows deleted. If count is 0, no rows matched the condition (this is not considered an error).  

EXAMPLES

Delete all films but musicals:

DELETE FROM films WHERE kind <> 'Musical';

Clear the table films:

DELETE FROM films;

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

2011-08-15 10:21:09

man中文man

2011-08-24 16:48:36

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-11 15:39:39

apm中文man

2011-08-11 17:10:55

cat中文man

2011-08-11 17:35:07

chgrp中文man

2011-08-11 17:53:06

chown中文man

2011-08-11 17:59:24

chsh中文man

2011-08-11 18:07:57

cksum中文man

2011-08-11 18:19:32

col中文man

2011-08-11 18:58:08

date中文man

2011-08-12 09:17:57

deallocvt中文man

2011-08-12 09:23:16

dig中文man

2011-08-12 10:15:13

dumpkeys中文man

2011-08-12 10:41:00

file中文man

2011-08-12 11:15:27

gzip中文man

2011-08-12 13:26:56

groff中文man

2011-08-12 14:10:47

install中文man

2011-08-12 14:58:05

killall中文man
點(diǎn)贊
收藏

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

主站蜘蛛池模板: 国产激情免费视频 | 国产精品久久av | 亚洲精品天堂 | 欧美日韩亚洲成人 | 欧美一级电影免费观看 | 91欧美激情一区二区三区成人 | 国产欧美综合在线 | 久久国产一区二区三区 | 99欧美精品| 欧美一区二区三区国产 | 韩日中文字幕 | 999免费视频 | 91久久久精品国产一区二区蜜臀 | 精品国产乱码久久久久久影片 | 天天操天天干天天爽 | 一级免费看片 | 色妹子综合网 | 99热这里都是精品 | 在线观看国产www | 一区二区精品在线 | 337p日本欧洲亚洲大胆精蜜臀 | 久久久99精品免费观看 | 欧美激情综合五月色丁香小说 | 亚洲www啪成人一区二区 | 精品久久一区 | 视频一区二区在线观看 | 久久精品亚洲 | 日本一区二区三区在线观看 | 免费一区| 一级毛片观看 | 日韩成人av在线 | 国产精久久久久久久 | 欧美成人手机视频 | 欧美另类视频 | 一区二区三区免费 | 久久国产精品72免费观看 | 亚洲美女视频 | 久久久www成人免费无遮挡大片 | 久久久久九九九女人毛片 | 激情av在线 | 久久亚洲欧美日韩精品专区 |