lordfa9 Posted November 3, 2006 Share Posted November 3, 2006 I need to change the column name of one of my tables for example ItemID ItemName1 Coffee changed to StockID StockName1 Coffee i need an SQL statement to do that, i want the name to be changed (instead of using an AS command)I was also reading something about using the ALTER TABLE and ALTER COLUMN commands, are these the correct command(s) to use and if so, how do i use them in a statement? Link to comment Share on other sites More sharing options...
aspnetguy Posted November 3, 2006 Share Posted November 3, 2006 ALTER TABLE tableName CHANGE ItemID StockID try that Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now