how to change (Update) column name in table using MySQL workbench?

纵饮孤独 提交于 2020-07-06 08:24:51

问题


I am new to MySQL. I created a table with column name First Name but it is wrong.

Now I want to change my column name First Name to First_Name. Is it possible? If yes please explain how I can change my column name.


回答1:


You can change it by following these step :

  1. Right click the table shown at the left in Schema tab of workbench and then select Alter Table. You will get a window like this ->

  2. Here you can see the column names available, edit here and click on apply.

You are done.



来源:https://stackoverflow.com/questions/33094174/how-to-change-update-column-name-in-table-using-mysql-workbench

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