ABAP: For All Entries

... FOR ALL ENTRIES IN itab WHERE ... col operator itab-comp ...


  With duplicated rows in the resulting set, the addition FOR ALL ENTRIES has the same effect as if addition DISTINCT were specified in the definition of the selection quantity. Unlike DISTINCT, the rows are not always deleted from the database system but are instead sometimes deleted on the application server from the resulting set. The duplicated rows are then removed from the database system, if the SELECT statement can be transferred to the database system as a single SQL statement. If the SELECT statement has to be transferred distributed on several SQL statements, the aggregation takes place on the application server.

你可能感兴趣的:(sql,SQL Server)