Aryan PrajapatKnowledge Contributor
How to rename a column of a table?
How to rename a column of a table?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Questions | Answers | Discussions | Knowledge sharing | Communities & more.
To rename a column in SQL, you can use the ALTER TABLE statement with the RENAME COLUMN clause. Here is the basic syntax:
ALTER TABLE table_name RENAME COLUMN old_column_name TO new_column_name;
For example, suppose you have a table called “tv_show” with a column named “genre”.