dbTalk Databases Forums  

alter table rename column

comp.database.ms-access comp.database.ms-access


Discuss alter table rename column in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mharness
 
Posts: n/a

Default alter table rename column - 11-29-2003 , 08:08 AM






Hello,

Can anyone tell me how to make this alter table command work?

alter table tblprospects rename column telephone number to phone

I've tried square brackets, parenthesis, single, and double quotes around
telephone number and they all error out.

Thanks, Mike



Reply With Quote
  #2  
Old   
Scott McDaniel
 
Posts: n/a

Default Re: alter table rename column - 11-30-2003 , 04:24 PM






RENAME is not a valid argument with this statement (as far as I know) ...
you would have to add a new column, run an update to copy the data from
oldcolumn to newcolumn, then drop the old column.

--
Scott McDaniel
CS Computer Software
www.thedatabaseplace.net

"mharness" <mike_harness (AT) hotmail (DOT) com> wrote

Quote:
Hello,

Can anyone tell me how to make this alter table command work?

alter table tblprospects rename column telephone number to phone

I've tried square brackets, parenthesis, single, and double quotes around
telephone number and they all error out.

Thanks, Mike





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.