如何使用MySQL工作台更改(更新)表中的列名? [英] how to change (Update) column name in table using MySQL workbench?
本文介绍了如何使用MySQL工作台更改(更新)表中的列名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是MySQL的新手.我用列名First Name
创建了一个表,但这是错误的.
I am new to MySQL. I created a table with column name First Name
but it is wrong.
现在,我想将列名First Name
更改为First_Name
.是否有可能?如果是,请说明如何更改列名.
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.
推荐答案
您可以按照以下步骤进行更改:
You can change it by following these step :
-
右键单击工作台
Schema
选项卡中左侧显示的表,然后选择Alter Table
.您将获得一个这样的窗口->
Right click the table shown at the left in
Schema
tab of workbench and then selectAlter Table
. You will get a window like this ->
在这里您可以看到可用的列名,在此处进行编辑,然后单击Apply.
Here you can see the column names available, edit here and click on apply.
您完成了.
这篇关于如何使用MySQL工作台更改(更新)表中的列名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文