简体   繁体   中英

Rearrange column order in Sqlyog

是否可以在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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM