Recherche…
Instruction SELECT
SELECT est une instruction Open-SQL permettant de lire les données d'une ou plusieurs tables de base de données dans des objets de données .
Sélection de tous les enregistrements
* This returns all records into internal table lt_mara. SELECT * FROM mara INTO lt_mara.Sélection d'un enregistrement unique
* This returns single record if table consists multiple records with same key. SELECT SINGLE * INTO TABLE lt_mara FROM mara WHERE matnr EQ '400-500'.Sélection de notices distinctes
* This returns records with distinct values. SELECT DISTINCT * FROM mara INTO TABLE lt_mara ORDER BY matnr.Fonctions d'agrégat
* This puts the number of records present in table MARA into the variable lv_var SELECT COUNT( * ) FROM mara INTO lv_var.
Modified text is an extract of the original Stack Overflow Documentation
Sous licence CC BY-SA 3.0
Non affilié à Stack Overflow