标签:sql show alt bsp 数据库表 ble databases esc ges
以orcl实例下,person表为例:
1.登录mysql:
mysql安装路径下,bin目录,打开命令窗口,输入mysql -u用户名 -p密码;
2.显示所有实例,show databases;
3.进入orcl实例,use orcl;
4.显示person表字段信息,desc person;
5.修改字段描述,alter table person change pid PID int(11) not null;
6.修改表名,alter table person rename to people;
标签:sql show alt bsp 数据库表 ble databases esc ges
原文地址:http://www.cnblogs.com/earshore/p/6533396.html