This is very basic things that a person should know about these. As an Abaper you need to know the difference among all.
INSERT : Insert is use to save or create a new record into database table, There is a key field if one will use a same key for two record it will show you run time error and system variable (SY-SUBRC = 4).
Syntax
Insert into dbtab values wa.
DELETE : Delete is use to remove a inserted record from the database table. Where we need to specify the key field that tells to the compiler which records we want to be deleted. If one is reentered the key field it will give you a run time error and system variable's SY-SUBRC = 4.
Syntax
Delete from dbtab where key_field = enetred_key.
UPDATE : Update is use to change the existing record , we can change some fields of existing record but not able to change the key field.
Syntax
Update dbtab from wa.
MODIFY : Modify is use to change the existing record but in some case the record is not available for that entered key so it will create a new record.
We can say that is is the combination of update and insert keywords.
Syntax
Modify dbtab from wa.
Hope your all doubt have cleared.
INSERT : Insert is use to save or create a new record into database table, There is a key field if one will use a same key for two record it will show you run time error and system variable (SY-SUBRC = 4).
Syntax
Insert into dbtab values wa.
DELETE : Delete is use to remove a inserted record from the database table. Where we need to specify the key field that tells to the compiler which records we want to be deleted. If one is reentered the key field it will give you a run time error and system variable's SY-SUBRC = 4.
Syntax
Delete from dbtab where key_field = enetred_key.
UPDATE : Update is use to change the existing record , we can change some fields of existing record but not able to change the key field.
Syntax
Update dbtab from wa.
MODIFY : Modify is use to change the existing record but in some case the record is not available for that entered key so it will create a new record.
We can say that is is the combination of update and insert keywords.
Syntax
Modify dbtab from wa.
Hope your all doubt have cleared.

No comments:
Post a Comment