adspace


how to rename an existing column in a table? : Sql dba

Answer Posted / Rahul Anand

To rename an existing column in a MySQL table, you can use the ALTER TABLE command with the RENAME COLUMN statement. Here's an example: `ALTER TABLE your_table RENAME COLUMN old_column_name TO new_column_name`.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is inner join faster than left join?

1287


what is schema? : Sql dba

1163


Can delete statement be rollbacked?

1065


Can we use distinct and group by together?

1146


what are aggregate and scalar functions? : Sql dba

1142


what are all the common sql function? : Sql dba

1141


what are the advantages of sql ? : Sql dba

1153


What is your daily office routine?

2351


define sql insert statement ? : Sql dba

1108


Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

2099


How do I remove duplicates in two columns?

1201


how many tables will create when we create table, what are they? : Sql dba

1154


what is bcp? When does it used? : Sql dba

1065


If a cursor is open, how can we find in a pl/sql block?

1252


What is the best sql course?

1062