For Programmers: Free Programming Magazines  


Home > Archive > PHP SQL > February 2006 > changing column names?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author changing column names?
Tony Peardon

2006-02-08, 6:58 pm

How do I change column names? Just the name of the column. Everything else
stays the same. I found one way in the manual, but it requires re-supplying
the column type. This just can't be the best way, so what is?



J.O. Aho

2006-02-08, 6:58 pm

Tony Peardon wrote:
> How do I change column names? Just the name of the column. Everything else
> stays the same. I found one way in the manual, but it requires re-supplying
> the column type. This just can't be the best way, so what is?


http://dev.mysql.com/doc/refman/5.0/en/alter-table.html


//Aho
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com