- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
sql应用命令实例(SQL application command instance)
sql应用命令实例(SQL application command instance)
Statement function
-- data manipulation
SELECT -- retrieve data rows and columns from a database table
INSERT -- adding new data rows to a database table
DELETE -- deletes rows of data from the database table
UPDATE -- update the data in the database table
-- data definition
CREATE TABLE - create a database table
DROP TABLE -- delete tables from the database
ALTER TABLE - modify the database table structure
CREATE VIEW - create a view
DROP VIEW -- delete views from the database
CREATE INDEX -- creates an index for the database table
DROP INDEX -- removes indexes from the database
CREATE PROCEDURE - creates a stored procedure
DROP PROCEDURE -- deletes stored procedures from the database
CREATE TRIGGER - create a trigger
DROP TRIGGER -- removes triggers from the database
CREATE SCHEMA -- add a new schema to the database
DROP SCHEMA -- deletes a schema from the database
CREATE DOMAIN - creates a data range
ALTER DOMAIN - change domain definitions
DROP DOMAIN -- deletes a domain from the database
-- data control
GRANT - Grant user access rights
DENY - deny user access
REVOKE - relieves user access rights
- transaction control
COMMIT - end the current transaction
ROLLBACK - aborts the current transaction
SET TRANSACTION - defines the current transaction data access feature
- programmed SQL
DECLARE -- sets the cursor for the query
EXPLAN -- describes data access plans for queries
OPEN -- retrieve the query results and open a cursor
FETCH -- retrieve a row of query results
CLOSE - close the cursor
PREPARE - prepares SQL statements for dynamic execution
EXECUTE - dynamically executing SQL statements
DESCRIBE -- describes the prepared query
Local variables
Declare @id char (10)
--set @id Select @id Global variables
- must be at the beginning of @ @
--IF ELSE
Declare, @x, int, @y, int, @z, int
Select @x = 1, @y = 2 @z=3
If @x @y
Printx Y- print stringx Y
Else, if, @y @z
Printy z
Else, print,z Y
--CASE
Use P
您可能关注的文档
- 3dmax材质贴图常见经典问题解答(3DMAX texture mapping common classic questions).doc
- 3dmax用光域网使用经验(3DMAX experience with optical LAN).doc
- 3dsmax中英文对照(按栏排序)(3dsmax in English and Chinese (sorted by column)).doc
- 3dsmax工具中英文对照(3dsmax tools in English and Chinese).doc
- 3dsmax常用快捷键(3dsmax commonly used shortcut keys).doc
- 3d图像的旋转算法(Rotation algorithm of 3D image).doc
- 3g门户2010手机银行横向对比评测(3G portal 2010 mobile banking horizontal comparison evaluation).doc
- 3s基础知识——基本术语(3S basic knowledge - Basic terminology).doc
- 3亿网民市场的项目讲解与分析(300 million, Internet users market project explanation and analysis).doc
- 3岁前最喜欢什么玩具(What toys do you like best before 3).doc
- sql常用语句大全(SQL common sentences Daquan).doc
- sql性能优化(SQL performance tuning).doc
- sql语句操作(SQL statement operation).doc
- sql语句附加数据库(SQL statement additional database).doc
- ssh配置文件(SSH configuration file).doc
- ssr(SSR).doc
- sudo安装、配置和应用(Sudo installation, configuration, and Application).doc
- tablestructure(表结构).doc
- tcas的工作原理(How does TCAS work).doc
- tcl总线进入方法(TCL bus access method).doc
最近下载
- 第7课《定期体检 预防常见病》(教案) - 2024—2025学年人教版(2024)初中体育与健康七年级全一册.docx
- 2025林地分等定级规程.pdf VIP
- 计算机操作系统实验-解析ELF文件.doc VIP
- 智能建造技术在桥梁施工中的应用.pptx VIP
- Unit3KeepFitSectionBProject课件人教版英语七年级下册.pptx VIP
- HGT3809-2023工业溴化钠(报批稿).pdf VIP
- 小红书商业模式分析.pptx VIP
- 铜的电阻率热导率比热值热膨胀系数及杨氏模量.pdf VIP
- 第7课++定期体检+++预防常见病++课件++2024—2025学年人教版(2024))初中体育与健康七年级全一册.pptx VIP
- 粉尘爆炸重大事故隐患判定标准(图文并茂第一版)精品.pdf
原创力文档


文档评论(0)