开发者

Rearrange column order in Sqlyog

开发者 https://www.devze.com 2022-12-14 22:27 出处:网络
Is it possible to rearrange a table开发者_开发技巧\'s column order in SQL yog?Yes. Table / More Table Operations / Reorder Columns(ctrl shift r)Column order is irrelevant to a database, so there isn\'

Is it possible to rearrange a table开发者_开发技巧's column order in SQL yog?


Yes. Table / More Table Operations / Reorder Columns (ctrl shift r)


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:

  1. Rename the current table to something else, like [tablename]_ORIG. A database won't allow identically named tables
  2. Create a new table with the column order you desire
  3. Copy the data from the old table into the new one
  4. Delete the old table
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号