What SQL command can be used to delete columns from a table?
A. MODIFY TABLE TableName DROP ColumnName
B. MODIFY TABLE TableName DROP COLUMN ColumnName
C. ALTER TABLE TableName DROP ColumnName
D. ALTER TABLE TableName DROP COLUMN ColumnName
Answer: Option D
Solution(By Examveda Team)
To delete columns from a table in SQL, you can use the ALTER TABLE TableName DROP COLUMN ColumnName command. Option D is the correct choice for removing columns from a table. Options A, B, and C do not represent the standard SQL syntax for deleting columns.Join The Discussion
Comments ( 1 )
Related Questions on Sql Miscellaneous
A. Structured Query Language
B. Structured Query List
C. Simple Query Language
D. None of these
Which is the subset of SQL commands used to manipulate Oracle Database structures, including tables?
A. Data Definition Language(DDL)
B. Data Manipulation Language(DML)
C. Both of above
D. None
Which operator performs pattern matching?
A. BETWEEN operator
B. LIKE operator
C. EXISTS operator
D. None of these
What operator tests column for the absence of data?
A. EXISTS operator
B. NOT operator
C. IS NULL operator
D. None of these
answer depends upon the database are you using oracle or sql