How To Use "For All Entries In Itab"
2007-05-04 12:29
288 查看
How To Use "For All Entries In Itab"
- Usually use for Sql Select Statement,it is for search condition in a list or a internal table.
For Instance:
-Internal Table: ITAB_A
Carrid Connid
LH 2415
SQ 0026
LH 0400
-Sql Section
Select * from sfligh into wa-sfligh
For All Entries In ITAB_A
where Carrid = ITAB_A-Carrid
and Connid = ITAB_A-Connid
and Fldate = '20010228'
.....
EndSelect.
-The Statement has the same effect as:
Select Distinct * from sflight into wa-sfligh
where Carrid = 'LH'
And Connid ='2415'
And fldate = '20010228' or
( Carrid = 'SQ'
And Connid ='0026'
And fldate = '20010228') Or
(Carrid = 'LH'
And Connid ='0400'
And fldate = '20010228')
...
EndSelect.
- Usually use for Sql Select Statement,it is for search condition in a list or a internal table.
For Instance:
-Internal Table: ITAB_A
Carrid Connid
LH 2415
SQ 0026
LH 0400
-Sql Section
Select * from sfligh into wa-sfligh
For All Entries In ITAB_A
where Carrid = ITAB_A-Carrid
and Connid = ITAB_A-Connid
and Fldate = '20010228'
.....
EndSelect.
-The Statement has the same effect as:
Select Distinct * from sflight into wa-sfligh
where Carrid = 'LH'
And Connid ='2415'
And fldate = '20010228' or
( Carrid = 'SQ'
And Connid ='0026'
And fldate = '20010228') Or
(Carrid = 'LH'
And Connid ='0400'
And fldate = '20010228')
...
EndSelect.
相关文章推荐
- How to use "chmod" under linux
- the "find" which you should kown that how to use it
- How to use "vi" edit the docs or source code files
- "How to use QThread in the right way (Part 1)"
- How to use "for/" batch command in Dos extention
- How to let "test2.c" use the variable in "test1.c"
- How to use "man" effectively in the development of Linux
- How to use ADPlus to troubleshoot "hangs" and "crashes"
- how to use the mathmatical constant "e" in conjunction with a vector
- how to fix "Cannot find a valid baseurl for repo: poptop-stable/7" in centos 7 *64 when use "yum -y
- How can I set the background of UITableView (the tableview style is "Grouped") to use an image?
- iOS: How to use "Block"
- How to use "for" in DOS
- How to Use the BASH "for" Loop in Shell Scripts
- How To Use "For All Entries In Itab"
- Howto use vimdiff as "git diff"'s diff tool
- The best manual of how to use "The easiest Xdebug" addon for Firefox
- Why Prepared Statements are important and how to use them "properly"
- How to solve "Address already in use" error on ...
- How to use gnu readline to implement "reset password".