码迷,mamicode.com
首页 > 其他好文 > 详细

what is the difference of select single and select up to one row in abap

时间:2015-04-28 11:46:02      阅读:114      评论:0      收藏:0      [点我收藏+]

标签:select single   select up to one row   

Select single is a construct designed to read database records with primary key. In the absence of the primary key, it might end up doing a sequential search, whereas the select up to 1 rows may assume that there is no primary key supplied and will try to find most suitable index.


Use "select up to 1 rows" only if you are sure that all the records returned will have the same value for the field(s) you are interested in. If not, you will be reading only the first record which matches the criteria, but may be the second or the third record has the value you are looking for.

what is the difference of select single and select up to one row in abap

标签:select single   select up to one row   

原文地址:http://blog.csdn.net/champaignwolf/article/details/45332971

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!