Jump to content

to change the column name of a table


abes_nitya
 Share

Recommended Posts

use this
ALTER TABLE tablename  RENAME COLUMN currentColumnName TO newColumnName

This will change hte name of the column without effecting contraints or type

sir ,i could not stoped ....without giving u a thanks.i want to say u a heartest thanks.because i have to implement this query to my project.thanks
Link to comment
Share on other sites

  • 7 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...