162684/how-to-rename-a-column-in-a-database-table-using-sql
For SQL Server, use sp_rename
USE AdventureWorks; GO EXEC sp_rename 'Customers.CustomerTerritory.TerritoryID', 'TerrID', 'COLUMN'; GO
If you need to know more about SQL, it is recommended to go for the SQL Certification today.
SELECT * FROM ( SELECT ID, NAME, ROW_NUMBER() ...READ MORE
The SQL query that I have used is : ALTER ...READ MORE
I have a SQL Server database, and ...READ MORE
I have a table Emp which has these rows: Emp_cd ...READ MORE
There's problem in all of them and ...READ MORE
Your dates are interpreted as MM-DD-YYYY. This ...READ MORE
For the various popular database systems, how ...READ MORE
A SQL Server database table has had ...READ MORE
Use the INFORMATION_SCHEMA.TABLES view to get the ...READ MORE
Always use ANSI default string literal format for date i.e. YYYY-MM-DD like below. INSERT ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.