Use app×
QUIZARD
QUIZARD
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
289 views
in Computer by (57.2k points)
closed by

ALTER table कमाण्ड के विषय में बताइये।

1 Answer

+1 vote
by (55.2k points)
selected by
 
Best answer

ALTER table कमाण्डस- इन कमाण्डस का उपयोग किसी टेबल में नया स्तंभ जोड़ने (add), delete करने या modify करने में करते हैं।

जिनके Syntax निम्न हैं-

(1) नया स्तंभ (column) जोड़ने के लिए

ALTER TABLE table_name ADD column_name data type;

उदाहरण – Classes टेबल में एक नया column classes strength जोड़ सकते हैं।
Alter table classes add class_strength int

(2) कोई स्तंभ टेबल को हटाने के लिए

ALTER TABLE table_name DROP COLUMN column_name;

(3) किसी स्तंभी का डेटा टाइप्स बदलने के लिए

ALTER TABLE table_name MODIFY column_name data type;

उदाहरण-

ALTER TABLE Student MODIFY Age Date;

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...