<[EMAIL PROTECTED]>
To: MySQL <[EMAIL PROTECTED]>
Sent: Thursday, September 13, 2001 12:00 AM
Subject: Renaming Columns...
> How??? ALTER TABLE table1 RENAME ???
> Tried it, dont work.
>
> - Deryck H
> - htt
>How??? ALTER TABLE table1 RENAME ???
>Tried it, dont work.
That renames the table itself.
ALTER TABLE tbl_name CHANGE old_name new_name column_definition
where column_definition is how you defined the column when you created
it. For example if you have a table
CREATE TABLE xyz
(
c CHAR(
How??? ALTER TABLE table1 RENAME ???
Tried it, dont work.
- Deryck H
- http://www.comp-u-exchange.com
-
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the l