I am new to MySQL. I created a table with column name First Name
but it is wrong.
我是MySQL新手。我创建了一个列名为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.
现在我想将我的列名First Name更改为First_Name。可能吗?如果是,请解释我如何更改我的列名称。
1 个解决方案
#1
13
You can change it by following these step :
您可以按照以下步骤进行更改:
-
Right click the table shown at the left in
Schema
tab of workbench and then selectAlter Table
. You will get a window like this ->右键单击工作台的Schema选项卡左侧显示的表,然后选择Alter Table。你会得到一个这样的窗口 - >
-
Here you can see the column names available, edit here and click on apply.
在这里,您可以看到可用的列名,在此处编辑,然后单击“应用”。
You are done.
你完成了。
#1
13
You can change it by following these step :
您可以按照以下步骤进行更改:
-
Right click the table shown at the left in
Schema
tab of workbench and then selectAlter Table
. You will get a window like this ->右键单击工作台的Schema选项卡左侧显示的表,然后选择Alter Table。你会得到一个这样的窗口 - >
-
Here you can see the column names available, edit here and click on apply.
在这里,您可以看到可用的列名,在此处编辑,然后单击“应用”。
You are done.
你完成了。