數(shù)據(jù)定義語言 Alter Database
Alter Table
Alter View
Create Database
Create Default (見注解1)
Create Index
Create Rule(見注解2)
Create Schema
Create Table
Create View
Drop Database
Drop Default(見注解1)
Drop Index
Drop Rule(見注解2)
Drop Table
Drop View
注1:在使用Create Default 創(chuàng)建的缺少值時(shí),Create Table和Alter Table語句中的Default子句提供首選的ANSI標(biāo)準(zhǔn)。
注2:在使用Create Rule創(chuàng)建的規(guī)則時(shí),(Create Table和Alter Table語句創(chuàng)建的)Check 約束提供首選的ANSI標(biāo)準(zhǔn)。
數(shù)據(jù)操縱語言
Begin Distributed Transaction
Begin Transaction
Close
Commit(見注解3)
Delete
Insert
ReadText
Rollback(見注解3)
Save Transaction
Select
Truncate Table
Update
UpdateText
WriteText
注3:SQL Server提供了兩種Commit 和Rollback語句。Commit(不帶關(guān)鍵字)和Rollback(不帶關(guān)鍵字)是符合ANSI標(biāo)準(zhǔn)的語句,而Commit Transaction和Rollback Transaction則是為了提供SQL Server對嵌套事務(wù)和部分事務(wù)進(jìn)行特殊支持。
編程流控制
Alter Function
Alter Procedure
Alter Trigger
Begin...End
Break
Continue
Create Function
Create Procedure
Create Trigger
Deallocate
Declare @localvariable
Declare...Cursor
Drop Function
Drop Procedure
Drop Trigger
Execute
Fetch
FormatMessage
GoTo
If...Else
Open
Print
RaisError
Return
Set @localvariable
Select @localvariable
WritFor
While
權(quán)限控制
Deny
Grant
Revoke
備份與恢復(fù)
Backup
Dump(Backup的同義詞,見注解4)
Load(Restore的同義詞,見注解4)
Restore
注4:Dump 和Load語句僅僅用來提供向后的兼容性,在SQL Server的以后版本中將不再支持。
雜項(xiàng)
Bulk Insert
Checkpoint
Create Statistics
DBCC
Drip Statistics
Go
Kill
ReConfigure
Set
SetUser(見注解5)
ShutDown
Update Statistics
Update Statistics
注5:SetUser 語句僅僅用來提供向后的兼容性,在SQL Server的以后版本將不再支持。
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請
點(diǎn)擊舉報(bào)。