首页 | 本学科首页   官方微博 | 高级检索  
     检索      

Sybase数据库的存储过程性能优化
引用本文:王奇成.Sybase数据库的存储过程性能优化[J].铁路计算机应用,2005,14(3):48-51.
作者姓名:王奇成
作者单位:广铁集团,电算信息中心,广州,510088
摘    要:存储过程中经常会用到游标,用等价的SQL语句来巧妙替换带游标的循环过程,可以显著提高存储过程的性能.12.0版以上Sybase数据库中新支持的CASE语句可以用来构造等价替换游标的高效率SQL语句.CASE语句的语法简单,但用它替换游标富有技巧性,举出两个具体实例.最后,概要提到其他一般的SQL语句优化技巧.

关 键 词:存储过程    游标    循环    记录集合
文章编号:1005-8451(2005)03-0048-04
收稿时间:2005-03-15
修稿时间:2004年10月12

Optimzing performance of Sybase stored procedure
WANG Qi-cheng.Optimzing performance of Sybase stored procedure[J].Railway Computer Application,2005,14(3):48-51.
Authors:WANG Qi-cheng
Abstract:The Cursors was usually used in stored procedure, but if it was replaced the loop block of the cursor with equivalentSQL sentence, the performance of stored procedure would be increased remarkably. The up-to-date CASE sentence of SybaseAdaptive Database Server above version 12 could construct efficient SQL sentence to replace cursor. The syntax of CASEsentence was simple, but using it to replace cursor was skillful, there were two examples in the article to describe this. At theend of the article, it was listed the general skill of optimize SQL.
Keywords:stored  procedure  cursor  loop  record  set
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《铁路计算机应用》浏览原始摘要信息
点击此处可从《铁路计算机应用》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号