How To Use "For All Entries In Itab"
2007-05-04 12:29
453 查看
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 "vi" edit the docs or source code files
- How to use "for/" batch command in Dos extention
- How to use "chmod" under linux
- How can I set the background of UITableView (the tableview style is "Grouped") to use an image?
- How to let "test2.c" use the variable in "test1.c"
- "How to use QThread in the right way (Part 1)"
- iOS: How to use "Block"
- 轮廓的查找、表达、绘制、特性及匹配(How to Use Contour? Find, Component, Construct, Features & Match)
- how to resolve "key values mismatch" issue
- there are no ebuilds built with USE flags to satisfy ">=sys-fs/udev-145[extras]
- Please read "Security" section of the manual to find out how to run mysqld as root!错误解决
- (NOT OK) How To Build CyanogenMod Android for Motorola Defy ("jordan")
- Welcome to emergency mode. Use "systemctl default" or ^D to activate default mode.
- How to remove the "Please purchase WinRAR license" prompt.
- wireshark lua: How to add your own tab to "Packet Bytes" pane (just like "reassembled TCP" tab) -- 用wireshark lua编写协议解析器dissecto
- How to solve "warning:waiting for transaction lock on /var/lib/" produced by pressing "Ctrl + c"?
- How to disable "Crtl+Alt+Backspace" and VT Switch under XWindow
- 【Android】Suggestion: use tools:overrideLibrary="" to force usage
- ERROR: "This virtual machine appears to be in use"
- How to use Bundle&Minifier and bundleconfig.json in ASP.NET Core