|
|
RENAME Column
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?
|
|
0
|
|
|
|
Reply
|
bubbles.one (43)
|
4/5/2010 3:56:57 AM |
|
On Sun, 4 Apr 2010 20:56:57 -0700 (PDT), bubbles
<bubbles.one@hotmail.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?
|
|
0
|
|
|
|
Reply
|
Tom
|
4/5/2010 4:14:50 AM
|
|
Thank you, Tom. That was what I did.
I am surprised that this action is not supported in Access SQL.
On Apr 5, 12:14=A0pm, Tom van Stiphout <tom7744.no.s...@cox.net> wrote:
> On Sun, 4 Apr 2010 20:56:57 -0700 (PDT), bubbles
>
> <bubbles....@hotmail.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?
|
|
0
|
|
|
|
Reply
|
bubbles
|
4/7/2010 8:17:24 AM
|
|
On 7 Apr., 10:17, bubbles wrote:
> 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 (
http://databases.aspfaq.com/database/how-do-i-rename-a-column.html ),
Access cannot.
Maybe they wonted to protect us against ourselves, as renaming a
column can break joins. But then it is easy to rename columns in VB.
Who knows?
Greetings
Marco P
|
|
0
|
|
|
|
Reply
|
Marco
|
4/7/2010 11:34:28 AM
|
|
|
3 Replies
915 Views
(page loaded in 0.043 seconds)
Similiar Articles: RENAME Column - comp.databases.ms-accessIs there an Access SQL function to rename a column? I tried the following: ALTER TABLE tablename RENAME oldcolumn newcolumn; ALTER TABLE tablen... Dynamic column name in function - comp.databases.mysqlRENAME Column - comp.databases.ms-access Dynamic column name in function - comp.databases.mysql RENAME Column - comp.databases.ms-access Is there an Access SQL function to ... How to Freeze Columns in a html table Using Javascript and HTML ...Rename columns using lookup table..Plz Help - comp.soft-sys.sas ... How to Freeze Columns in a html table Using Javascript and HTML ... RENAME Column - comp.databases.ms ... alter table modify next size and update Statistics - comp ...RENAME Column - comp.databases.ms-access alter table modify next size and update Statistics - comp ... RENAME Column - comp.databases.ms-access alter table modify next ... Rename File with SAS - comp.soft-sys.sasUsing and external file as a lookup table to update values in a SAS dataset. 2. Rename columns using lookup table..Plz Help Hi all, I have following 2 datasets. Changing width of a datagrid column dynamically - comp.lang ...RENAME Column - comp.databases.ms-access alter table modify next size and update ... When creating dynamic tables, creating dynamically named columns ... ... Rename a ... Column Number in Where Clause - comp.databases.mysqlRENAME Column - comp.databases.ms-access Column Number in Where Clause - comp.databases.mysql Hello, Is any way to access the column value using the number of the selected ... export the sas dataset to excel when the column label name has ...RENAME Column - comp.databases.ms-access export the sas dataset to excel when the column label name has ... export the sas dataset to excel when the column label name has ... update colomn in the table (GUI) - comp.soft-sys.matlabalter table modify next size and update Statistics - comp ..... table, is it recommended to run update stats over the table ... RENAME Column - comp.databases.ms-access ... rename worksheets - comp.soft-sys.sasRENAME Column - comp.databases.ms-access Naming columns in output excel files - comp.soft-sys.matlab ... rename worksheets - comp.soft-sys.sas Naming columns in output ... Rename column in an Oracle table - Oracle Consulting, Oracle ...What is a name? Plenty, if you ask many Oracle developers. Back in the early days of Oracle7 it was a very cumbersome procedure to rename a column within a ... How to Rename Columns | eHow.comMicrosoft Excel allows users to create spreadsheets, perform calculations and make reports. The default column labels follow an alphabetical list, for example, A, B ... 7/23/2012 7:01:46 AM
|
|
|
|
|
|
|
|
|