1
1

Which of the following command is used to add attributes to an existing relation?

Which of the following command is used to add attributes to an existing relation?
1). modify table
2). drop table
3). set table
4). alter table

This Question has 1 answers.

The alter table command to add attributes to an existing relation. All tuples in the relation are assigned null as the value for the new attribute. The form of the alter table command is

alter table r add A D;

where r is the name of an existing relation, A is the name of the attribute to be added, and D is the type of the added attribute.

Add Answer / Comment

Captcha Image