【Mysql】alter

The ALTER privilege enables use of ALTER TABLE to change the structure of tables. ALTER TABLE also requires the CREATE and           INSERT privileges. Renaming a table requires ALTER and DROP on the old table, ALTERCREATE, and INSERT on the new table

create database Susake;

use Susake;

create table Qing(a int, b int);

alter table Qing;

rename table Qing to Test;

drop table Test;

drop database Susake;

 

posted on 2014-03-29 02:50  至死丶不渝  阅读(121)  评论(0编辑  收藏  举报

导航