触发器、存储过程和函数三者有何区别(Triggers, stored procedures and functions. What is the difference between the three).docVIP
- 1、本文档共9页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
触发器、存储过程和函数三者有何区别(Triggers, stored procedures and functions. What is the difference between the three)
触发器、存储过程和函数三者有何区别(Triggers, stored procedures and functions. What is the difference between the three)
What time for a stored procedure? The storage process procedures, it is through grammar check and compile the SQL statement, so run very fast.
Trigger is a special process of storage, storage process and trigger program calls will automatically execute the function; what you say is a custom function, the function is to produce output according to the input, custom only input-output relationship defined by the user. At what time the trigger is used? According to the requirements of the system operation automatically according to the number of input tasks, for example, buy out of the product automatically deduct the inventory of the product. What time for a stored procedure? The storage process procedures, it is through grammar check and compile the SQL statement, so run very fast.
The difference between stored procedures and user-defined function specific
Look at the definition of:
stored procedure
The stored procedure can make the management of database, and the display of database and user information much easier. The stored procedure is SQL statements and optional control flow statements precompiled collection stored under a name and processed as a unit. Stored in the database, the application by a call, and allows the user to declare variables, conditional execution, and other powerful programming function.
The stored procedure can include program flow, logic and queries to a database. They can accept parameters, output parameters, return a single or multiple result sets and return value.
You can use the stored procedure for any use of the SQL statement, it has the following advantages:
Can perform a series of SQL statements in a single storage process.
Can refer to other stored procedures from their stored procedures, which can simplify a series of complex statements.
In the process of creating storage on the server is compiled, so to implement than a single SQ
您可能关注的文档
- 第2课 第二次鸦片战争(The second class of the second Opium War).doc
- 第25课《两极世界的形成》教学设计(The twenty-fifth class form bipolar world teaching design).doc
- 第2章重要说明 1 网页命名规则要求网页文件名与网页标题都与例题(The second chapter the 1 important requirements of naming rules Web page file name and title page with examples).doc
- 第4章 例题(子查询和group by子句)(Chapter fourth examples (sub queries and group by clause)).doc
- 第4章word2007文档编辑与排版(The fourth chapter word2007 document editing and typesetting).doc
- 第6讲 近代前期列强侵华战争(The sixth powers in the war of aggression against China in early modern times).doc
- 第81届奥斯卡(Eighty-first Oscar).doc
- 第10课 充满魅力的书画和戏曲艺术(The tenth class is full of charm of calligraphy and painting and opera art).doc
- 第5龙骑兵团指挥官莫兰上校的西班牙战役日记(The fifth dragoon regiment commander Colonel Moran of the Spanish campaign.).doc
- 第一章 市场营销导论(The first chapter marketing).doc
- 2024安全监察人员模考模拟试题【最新】附答案详解.docx
- 2024年安全监察人员考试彩蛋押题【实用】附答案详解.docx
- 2025安全监察人员模拟试题及参考答案详解【完整版】.docx
- 2025年安全监察人员高频难、易错点题(各地真题)附答案详解.docx
- 2024年安全监察人员通关题库及参考答案详解【黄金题型】.docx
- 2024年安全监察人员考前冲刺练习题及完整答案详解【历年真题】.docx
- 2024高职单招能力检测试卷(基础题)附答案详解.docx
- 2024年安全监察人员检测卷及参考答案详解(最新).docx
- 2024安全监察人员真题附完整答案详解【夺冠】.docx
- 2024年安全监察人员模拟题库附参考答案详解【黄金题型】.docx
最近下载
- 院感知识试题(附答案).docx VIP
- 分布式光伏电站屋顶租赁协议(标准范本).docx
- 高温防暑安全培训课件.pptx VIP
- 11SG534带水平段钢斜梯(45°)(OCR).pdf VIP
- 一升二数学《暑假作业》 每日一练.docx VIP
- 《商务-谈判》课程标准).doc VIP
- 对我国长距离浆体管道输送工程设计的思考-论文发表.PDF VIP
- 110(66)kV~500kV架空输电线路运行规范.ppt VIP
- 牛津译林版九年级上册英语Unit 1-Unit 8语法知识点复习提纲.pdf VIP
- 《GBT20001.3-2015标准编写规则第3部分:分类标准》(2025版)深度解析.pptx
文档评论(0)