SAP用語辞典
FOR ALL ENTRIES
FOR ALL ENTRIES読み:ふぉーおーるえんとりーず
- ABAP
内部テーブルの各行の値を条件として、データベースから一括取得するOpen SQLの構文。ループ内でSELECTを繰り返す代わりに使う。ただし駆動表が空の場合はWHERE条件そのものが無視されテーブル全件が返るため、実行前の空チェックが必須。また結果から重複行が自動的に除去される点にも注意が必要。
English
FOR ALL ENTRIES
An Open SQL construct that selects rows matching values held in an internal table, used instead of repeating a SELECT inside a loop. Two behaviours catch people out: if the driver table is empty the condition is dropped entirely and the whole table is returned, so an emptiness check is mandatory; and duplicate rows are removed from the result automatically.