偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

SQL Server刪除表信息的三種方法

數(shù)據(jù)庫 SQL Server
SQL Server數(shù)據(jù)庫刪除數(shù)據(jù)有很多的方法,下文對使用DELETE、TRUNCATE、DROP刪除表信息的語法結構作了詳述,供您參考。

SQL Server刪除表信息的方法很多,下面就為您介紹其中最常用的三種方法,希望對您學習SQL Server刪除表信息方面能有所幫助。

1、使用DELETE實現(xiàn)SQL Server刪除表信息

(1)刪除表中的全部信息

USE student

GO

DELETE student      --不加where條件,刪除表中的所有記錄

go

(2)刪除表中符合條件的記錄

USE student

GO

DELETE student where Id='001'    --刪除表中符合條件的記錄

GO


2、使用TRUNCATE刪除表中的信息

USE student

GO

TRUNCATE TABLE    student   --刪除表中的全部信息

GO


3、使用DROP刪除表中的記錄

USE student

GO

DROP TABLE student   --SQL Server刪除表中全部信息

GO

 

 

 

 

【編輯推薦】

SQL SERVER刪除日志的實現(xiàn)方法

SQL Server級聯(lián)刪除的實現(xiàn)

SQL Server Agent服務

Sql server DAC連接的問題

SQL Server端口更改后數(shù)據(jù)庫的連接

責任編輯:段燃 來源: 互聯(lián)網(wǎng)
相關推薦

2010-10-20 13:52:07

SQL Server數(shù)

2010-11-09 14:35:48

SQL Server查

2021-09-10 18:09:42

SQL注入漏洞網(wǎng)絡攻擊

2009-07-08 12:56:32

編寫Servlet

2010-09-13 15:41:23

sql server數(shù)

2010-07-19 14:43:21

SQL Server查

2010-09-06 10:04:31

CSS樣式表

2009-12-11 18:49:39

預算編制博科資訊

2022-07-13 16:06:16

Python參數(shù)代碼

2024-11-15 07:00:00

Python發(fā)送郵件

2011-04-18 15:32:45

游戲測試測試方法軟件測試

2010-09-14 15:10:49

CSS注釋

2023-08-14 17:58:13

RequestHTTP請求

2011-06-10 10:43:12

Ubuntu應用安裝

2009-06-23 10:45:18

Hibernate支持

2022-01-20 09:58:44

Python元素列表

2010-10-21 09:43:15

2010-11-12 14:00:24

Transact-SQ

2023-05-16 16:07:07

大數(shù)據(jù)數(shù)據(jù)管理工具

2021-07-13 12:31:27

IT組織改進首席技術官
點贊
收藏

51CTO技術棧公眾號