Any one know, why DML command rollback and DDL command can't?
Why DML command rollback and DDL command can't?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Any one know, why DML command rollback and DDL command can't?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Muhammad Imran AnsariRank #326 · 7.6K reputationPosted Oct 6, 2022, 2:17 PM EDT
DML is the Data Manipulation Language, which means they are the statements you use to manipulate the data in the database. Commands are not auto-committed and you can roolback the the changes which you made. So, It is possible to roll back the operation before commit.
DDL is the Data Definition Language helps you to define the database structure or schema. DDL commands help you to create the structure of the database and the other database objects. Its commands are auto-committed so, the changes are saved in the database permanently.
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Oct 7, 2022, 1:22 AM EDT
Because DDL commands are Auto-commit by default.
They will not be sent/commited to database directly until an explicit "commit" command is issued. As they are just manipulation commands. Whereas DDL commnads directly work on data defimitions i.e on structures of db.