Advertisements
Advertisements
प्रश्न
Choose the appropriate answer with respect to the following code snippet.
code snippet.
CREATE TABLE student(
name CHAR(30)
student_id INT,
gender CHAR(1),
PRIMARY KEY (student_id)
);
In the following query how many rows will be deleted?
DELETE student WHERE student_id=109;
विकल्प
1 row
All the rows where student ID is equal to 109
No row will be deleted
2 rows
MCQ
Advertisements
उत्तर
1 row
Explanation:
student_id is a PRIMARY KEY, so each ID is unique. Therefore, only 1 row with student_id = 109 will be deleted.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
