218k views
4 votes
which of the following options is not correct? select one: a. alter table emp add column name varchar(25); b. alter table emp drop column column name; c. alter table emp modify name varchar(30); d. alter table emp drop column name;

1 Answer

1 vote

Final Answer:

The option that is not correct is: b. alter table emp drop column column name;

Step-by-step explanation:

Option b contains a syntax error. The correct syntax to drop a column in SQL using the ALTER TABLE statement is as follows: ALTER TABLE emp DROP COLUMN name;. In option b, there is an extra "column" before the actual column name, resulting in an incorrect command. The correct syntax should directly specify the column name after the DROP COLUMN keywords.

Options a, c, and d represent valid SQL statements for altering a table. Option a adds a new column, option c modifies the data type of an existing column, and option d drops a column from the table.

Option B is not correct.

User Anudeep Bulla
by
8.4k points