About 163,000 results
Open links in new tab
  1. How do I rename a column in a database table using SQL?

    Oct 6, 2008 · 155 If I wish to simply rename a column (not change its type or constraints, just its name) in an SQL database using SQL, how do I do that? Or is it not possible? This is for any …

  2. Rename column in SQL Server - Stack Overflow

    Dec 18, 2015 · You can rename a column using a CHANGE old_col_name new_col_name column_definition clause. To do so, specify the old and new column names and the definition …

  3. How do you change the datatype of a column in T-SQL Server?

    Mar 9, 2009 · I am trying to change a column from a varchar(50) to a nvarchar(200). What is the SQL command to alter this table?

  4. sql - Rename a column in MySQL - Stack Overflow

    I am trying to rename a column in MySQL community server 5.5.27 using this SQL expression: ALTER TABLE table_name RENAME COLUMN old_col_name TO new_col_name; I also tried …

  5. Rename column SQL Server 2008 - Stack Overflow

    Apr 30, 2013 · I am using SQL Server 2008 and Navicat. I need to rename a column in a table using SQL. ALTER TABLE table_name RENAME COLUMN old_name to new_name; This …

  6. How to ALTER multiple columns at once in SQL Server

    Jan 24, 2015 · I need to ALTER the data types of several columns in a table. For a single column, the following works fine: ALTER TABLE tblcommodityOHLC ALTER COLUMN …

  7. Change primary key column in Microsoft SQL Server

    SELECT * from history WHERE id is NULL <---- This shows 0 results ALTER TABLE history ALTER COLUMN id int NOT NULL ALTER TABLE history ADD PRIMARY KEY (id) ALTER …

  8. How can I rename my column in a SQL table? - Stack Overflow

    Jun 17, 2010 · How can I rename a column via alter table in MS SQL 2005? For example: alter table tablename rename "old col name" to "new col name"

  9. How do I rename a column in an SQLite database table?

    ALTER TABLE your_table RENAME COLUMN "Really Bad : Column Name" TO BetterColumnName According to keywords the use of "double-quotes" is the standard way …

  10. How to alter column name in Sql server - Stack Overflow

    I've a table Amount, having a column name amount_id which i want to change and update into account_id I am using sp_rename function but i dont know how exactly i can change it EXEC …