हिंदी

A SQL table ITEMS contains the following columns: INO, INAME, QUANTITY, PRICE, DISCOUNT Write the SQL command to remove the column DISCOUNT from the table. - Computer Science (Python)

Advertisements
Advertisements

प्रश्न

A SQL table ITEMS contains the following columns:

INO, INAME, QUANTITY, PRICE, DISCOUNT

Write the SQL command to remove the column DISCOUNT from the table.

कोड लेखन

उत्तर

ALTER TABLE ITEMS DROP COLUMN DISCOUNT;

Explanation:

Alter is a DDL command in SQL that allows us to change the table's structure. 

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2021-2022 (April) Set 4
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×