BINARY SEARCH in read table statement
2014-03-11 19:07
423 查看
1.for standard table, it must be sorted by search key.
2.for sorted table , binary search is used automatically when searching with/include table key.
Note:with a binary search (addition BINARY SEARCH is used for standard tables, automatically for sorted tables), if there are several hits (because of an incompletely specified search key or because there are duplicate entries in the table), then the first hit in terms of the sequence of the rows is always returned, that is, the row with the smallest index.
using binary search,if there is no records hitted , then sy-subrc is set to 4, sy-tabix is set to 1,
if there is no record hitted and the end of the table was reached, sy-subrc is set to 8, sy-tabix is set to lines of table + 1.
2.for sorted table , binary search is used automatically when searching with/include table key.
Note:with a binary search (addition BINARY SEARCH is used for standard tables, automatically for sorted tables), if there are several hits (because of an incompletely specified search key or because there are duplicate entries in the table), then the first hit in terms of the sequence of the rows is always returned, that is, the row with the smallest index.
using binary search,if there is no records hitted , then sy-subrc is set to 4, sy-tabix is set to 1,
if there is no record hitted and the end of the table was reached, sy-subrc is set to 8, sy-tabix is set to lines of table + 1.
相关文章推荐
- Linux下chkconfig用法详解
- Nginx server之Nginx作为web服务器(基于域名或IP的web服务器)
- MVC中JQuery文件引入的路径问题,@Url.Content函数
- [问题2014S01] 解答
- html5的Input Attr : Autofocus,感觉挺有意思的!
- 关键词提取1-C#
- RSA算法原理
- 排序之选择排序
- intent 分析,显式隐式
- nagios监控服务器
- 开发中用到的一个快速排序法
- FreeBSD---GIT
- jQuery源码学习之总体架构
- glibc-printf
- Visual C++ ADO数据库编程入门(下)
- Visual Studio Intellisense、Eclipse Content Assist与理念式编程
- SAP 金额在表中的存储及货币转换因子
- Java transient关键字使用小记
- Visual C++ ADO数据库编程入门(上)
- 黑马程序员___交通灯管理系统