DDL includes
Answer: A) Creating table
DDL stands for Data Definition Language. It is used in SQL to create, change, and delete the structure of database objects, such as tables.
The three important DDL commands are:
- CREATE: Creates a new table.
- ALTER: Changes the structure of an existing table, such as adding or removing fields.
- DROP: Deletes an entire table.
Option C is different because altering data means changing the actual records stored inside a table. This is done using the DML command UPDATE, not DDL.
Therefore, if only one option must be selected, A. Creating table is the likely expected exam answer.
DDL को पूरा रूप Data Definition Language हो। यसको प्रयोग SQL मा Database को संरचना बनाउन, परिवर्तन गर्न र हटाउन गरिन्छ।
DDL का मुख्य तीनवटा Command यस प्रकार छन्:
- CREATE: नयाँ Table बनाउन प्रयोग गरिन्छ।
- ALTER: पहिलेदेखि रहेको Table को संरचना परिवर्तन गर्न प्रयोग गरिन्छ। जस्तै: नयाँ Field थप्ने वा हटाउने।
- DROP: पूरा Table हटाउन प्रयोग गरिन्छ।
तर विकल्प C मा भनिएको Table भित्रको Data परिवर्तन गर्ने काम DDL अन्तर्गत पर्दैन। यसका लागि DML को UPDATE Command प्रयोग गरिन्छ।
उदाहरणका लागि, विद्यार्थीको Table मा रहेको नाम परिवर्तन गर्नु Data परिवर्तन गर्नु हो, तर नयाँ Field थप्नु Table को Structure परिवर्तन गर्नु हो।
त्यसैले एउटा मात्र विकल्प छान्नुपर्ने परीक्षामा सम्भावित उत्तर A. Creating table हो।
महत्त्वपूर्ण कुरा: प्राविधिक रूपमा A, B र D तीनवटै DDL अन्तर्गत पर्छन्। त्यसैले यो प्रश्नमा एउटै उत्तर मात्र छान्नुपर्ने गरी विकल्प बनाइएको भए पनि प्रश्न पूर्ण रूपमा स्पष्ट छैन।
Exam Tip:
| Command | काम |
| ------- | --------------------------------- |
| CREATE | नयाँ Table बनाउने |
| ALTER | Table को Structure परिवर्तन गर्ने |
| DROP | Table हटाउने |
| UPDATE | Table भित्रको Data परिवर्तन गर्ने |
याद गर्नुहोस्: DDL ले Database को Structure परिवर्तन गर्छ भने DML ले Database भित्रको Data परिवर्तन गर्छ।

