![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is there an Access SQL function to rename a column? I tried the following: ALTER TABLE tablename RENAME oldcolumn newcolumn; ALTER TABLE tablename REN oldcolumn newcolumn; ALTER TABLE tablename RN oldcolumn newcolumn; all do not work. Checked the Access SQL reference - found no reference to renaming columns. Any ideas? |
#3
| |||
| |||
|
|
On Sun, 4 Apr 2010 20:56:57 -0700 (PDT), bubbles bubbles.... (AT) hotmail (DOT) com> wrote: Perhaps you can use three statements: one using the ADD COLUMN clause, one using an UPDATE statement to copy the data over, and one using the DROP COLUMN clause. -Tom. Microsoft Access MVP Is there an Access SQL function to rename a column? I tried the following: ALTER TABLE tablename RENAME oldcolumn newcolumn; ALTER TABLE tablename REN oldcolumn newcolumn; ALTER TABLE tablename RN oldcolumn newcolumn; all do not work. Checked the Access SQL reference - found no reference to renaming columns. Any ideas? |
#4
| |||
| |||
|
|
Thank you, Tom. That was what I did. I am surprised that this action is not supported in Access SQL. Yes, MySql and Oracle can this, SQL-Server has sp_rename ( |
![]() |
| Thread Tools | |
| Display Modes | |
| |