How to move columns in a MySQL table?

后端 未结 4 879
孤街浪徒
孤街浪徒 2020-11-29 16:04

Currently I am having the following MySQL table: Employees (empID, empName, department);

I want to change the table to the following: Employees (e

4条回答
  •  有刺的猬
    2020-11-29 16:47

    phpMyAdmin provides a GUI for this within the structure view of a table. Check to select the column you want to move and click the change action at the bottom of the column list. You can then change all of the column properties and you'll find the 'move column' function at the far right of the screen.

    Of course this is all just building the queries in the perfectly good top answer but GUI fans might appreciate the alternative.

    my phpMyAdmin version is 4.1.7

提交回复
热议问题