SAP ABAP 性能优化技巧 – 视图取代基本表
2009-08-03 19:26
501 查看
使用视图取代基本表
很多时候 ABAP 程序员需要使用基本表和嵌套的选择。其实我们应该查看一下是否有SAP已经提供的这些基本表的某些视图可供使用,以便直接获得想要的数据,而不用特别编写代码来获取。不建议使用:
Select * from zcntry where cntry like ‘IN%’.
Select single * from zflight where cntry = zcntry-cntry and airln = ‘LF’.
Endselect.
Select single * from zflight where cntry = zcntry-cntry and airln = ‘LF’.
Endselect.
建议使用:
Select * from zcnfl where cntry like ‘IN%’ and airln = ‘LF’.
Endselect.
Endselect.
相关文章推荐
- SAP ABAP 性能优化技巧 — 使用 ABAP “Sort” 取代 “Order By”
- SAP ABAP 性能优化技巧 — 正确使用”inner join”
- SAP ABAP 性能优化技巧 – 修改一组纪录
- SAP ABAP 性能优化技巧 –- “into table” 语句
- SAP ABAP 性能优化技巧 — 性能分析的工具
- Lua性能优化技巧(二):基本事实
- SAP ABAP 性能优化技巧 — 向内表添加纪录
- SAP ABAP 性能优化技巧 — 使用二分查找(Binary Search)选项
- SAP ABAP 性能优化技巧
- 【iOS 技巧 - 3 】uitableView cell基本的性能优化
- SAP ABAP 性能优化技巧 — 缓存表
- SAP ABAP 性能优化技巧 — 选择条件(转)
- SAP ABAP 性能优化技巧 — 使用 “for all entries”
- SAP ABAP 性能优化技巧 — 集合函数
- SAP ABAP 性能优化技巧 — “where” 语句的正确结构
- SAP ABAP 性能优化技巧 — 使用 ABAP “Sort” 取代 “Order By”
- Java性能优化技巧集锦
- Java 性能优化技巧及实战
- mysql 超大数据/表管理技巧&MySQL 性能优化的最佳20多条经验
- Python 代码性能优化技巧