首页 > 其他 > 详细

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

时间:2015-04-28 11:44:59      阅读:343      评论:0      收藏:0      [点我收藏+]
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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!