Is it possible to rearrange a table's column order in SQL yog?
+1
A:
Column order is irrelevant to a database, so there isn't any benefit beyond readability to reorganizing column order.
The only means of reordering a tables columns is to:
- Rename the current table to something else, like [tablename]_ORIG. A database won't allow identically named tables
- Create a new table with the column order you desire
- Copy the data from the old table into the new one
- Delete the old table
OMG Ponies
2009-12-19 17:35:43
Or ... see the other answer.
ripper234
2009-12-19 22:20:59
+4
A:
Yes. Table / More Table Operations / Reorder Columns (ctrl shift r)
Ollie Jones
2009-12-19 20:12:52