If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Rename Column

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-06-07, 03:31
ankur02018 ankur02018 is offline
Registered User
 
Join Date: Jun 2007
Posts: 189
Smile Rename Column

hi
I want to rename column in mysql

such as column A to column B in ISMWL table what would be the exact syntax in mysql

Last edited by ankur02018; 07-06-07 at 08:41.
Reply With Quote
  #2 (permalink)  
Old 07-06-07, 04:05
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
Are you wanting to do this in mySQL or SQL Server (as in your other thread here)?

Please don't cross post - stick to the relevant topics
__________________
George
Twitter | Blog
Reply With Quote
  #3 (permalink)  
Old 07-06-07, 04:06
pootle flump pootle flump is offline
King of Understatement
 
Join Date: Feb 2004
Location: One Flump in One Place
Posts: 14,905
Thread in SQL Server removed.
__________________
Testimonial:
Quote:
pootle flump
ur codings are working excelent.
Reply With Quote
  #4 (permalink)  
Old 07-06-07, 04:08
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
Cheers Poots - oh "wise" one
As for the answer - look up ALTER TABLE statements in BoL - that'd be my first place to look.
__________________
George
Twitter | Blog
Reply With Quote
  #5 (permalink)  
Old 07-06-07, 06:57
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
george, mysql's "BoL" is not known by that moniker

we simply call it da manual or da docs
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #6 (permalink)  
Old 07-06-07, 08:41
ankur02018 ankur02018 is offline
Registered User
 
Join Date: Jun 2007
Posts: 189
Smile

thanks all for your reply I got the correct syntax

ALTER TABLE `TableName` CHANGE `ExistingColumnName` `NewColumnName` DataType ;
Reply With Quote
  #7 (permalink)  
Old 07-06-07, 09:13
pootle flump pootle flump is offline
King of Understatement
 
Join Date: Feb 2004
Location: One Flump in One Place
Posts: 14,905
Quote:
Originally Posted by georgev
Cheers Poots - oh "wise" one
wtf is the wink for?













__________________
Testimonial:
Quote:
pootle flump
ur codings are working excelent.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On