English

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

Question

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.

Code Writing

Solution

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
  Is there an error in this question or solution?
2021-2022 (April) Set 4
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×