खोज…


चयन कथन

सेलेक्ट डेटा ऑब्जेक्ट में एक या कई डेटाबेस टेबल से डेटा पढ़ने के लिए एक ओपन-एसक्यूएल-स्टेटमेंट है।

  1. ऑल रिकॉर्ड्स का चयन

    * This returns all records into internal table lt_mara.
    SELECT * FROM mara
             INTO lt_mara.
    
  2. एकल रिकॉर्ड का चयन

    * 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'.
    
  3. विचलित रिकॉर्ड का चयन

    * This returns records with distinct values.
    SELECT DISTINCT * FROM mara
                      INTO TABLE lt_mara
                      ORDER BY matnr.
    
  4. अलग कार्य

    * 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
के तहत लाइसेंस प्राप्त है CC BY-SA 3.0
से संबद्ध नहीं है Stack Overflow