report z_generic_test_program .
tables: csks.
start-of-selection.
select * up to 10 rows from csks
where kokrs <> space and
kostl <> space
%_hints oracle 'index(csks"J")'.
write: / csks.
endselect.
tables: csks.
start-of-selection.
select * up to 10 rows from csks
where kokrs <> space and
kostl <> space
%_hints oracle 'index(csks"J")'.
write: / csks.
endselect.
Trackback: http://tb.blog.youkuaiyun.com/TrackBack.aspx?PostId=1668458
本文提供了一个使用ABAP编程语言从CSKS表中选择特定数据的示例代码。该代码通过设置条件筛选记录,并利用Oracle索引优化查询性能。
57

被折叠的 条评论
为什么被折叠?



