>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(30) NOT NULL
)
Then you can rename c to d like this:
ALTER TABLE xyz CHANGE c d CHAR(30) NOT NULL
To answer your next question :-), no, you can't do it without
repeating the column definition.
>- Deryck H
>- http://www.comp-u-exchange.com
--
Paul DuBois, [EMAIL PROTECTED]
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php