Rearrange column order in Sqlyog

ε祈祈猫儿з 提交于 2019-12-07 05:02:37

问题


Is it possible to rearrange a table's column order in SQL yog?


回答1:


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




回答2:


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


来源:https://stackoverflow.com/questions/1933494/rearrange-column-order-in-sqlyog

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!