Advertisements
Advertisements
Question
A customer table is created with cno,cname, and address columns. Evaluate the following statement whether it is correct or not?
Delete cname from customer;
Code Writing
Advertisements
Solution
The statement is incorrect. DELETE removes rows, not columns. To remove a column, use:
ALTER TABLE customer
DROP COLUMN cname;shaalaa.com
Is there an error in this question or solution?
