Jump to content

syntax for changing column name


OriginalSunny

Recommended Posts

To change a column name:

[code]ALTER TABLE yourTable CHANGE COLUMN yourOldColumn yourNewColumn <column details>[/code]

To rename a DB, you really need to shutdown the server, rename the actual directory itself, and then handle all the privileges. I don't think there's another way, though I think 5.1 will have a RENAME DATABASE command.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.