zoukankan      html  css  js  c++  java
  • BINARY SEARCH in read table statement

    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.
  • 相关阅读:
    简单的逻辑学 笔记
    中国古代文化常识 笔记
    Docker 使用官方镜像
    Docker 入门 之基本命令
    Windows.form增删改查
    自定义控件
    LISTVIEW
    窗体布局
    计算器
    登录
  • 原文地址:https://www.cnblogs.com/ruingy/p/3594669.html
Copyright © 2011-2022 走看看