如何使用MySQL工作台更改(更新)表中的列名? [英] how to change (Update) column name in table using MySQL workbench?

查看:98
本文介绍了如何使用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 :

  1. 右键单击工作台Schema选项卡中左侧显示的表,然后选择Alter Table.您将获得一个这样的窗口->

  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 ->

在这里您可以看到可用的列名,在此处进行编辑,然后单击Apply.

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

您完成了.

这篇关于如何使用MySQL工作台更改(更新)表中的列名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆