简单的数据操作
 
01
mysql -uroot -pgc7232275
02
show tables
03
desc tablename
04
alter table add fieldname fieldtype
05
alter table   table1 add id int unsigned not Null auto_increment primary key
06
alter table TN chang oldfieldname newfieldname fieletyep null or not null
07
alter table TN modify fieldname fieletyep null or not null
08
alter table TN drop filename
09

10
alter table TN add index index_name(column...)
11
alter table TN add unique index_name(column)
12

13
alter table TN add primary index_name(column...)
14

15
ALTER TABLE tbl_name DROP INDEX index_name (column list);
16
ALTER TABLE tbl_name DROP UNIQUE index_name (column list);
17
ALTER TABLE tbl_name DROP PRIMARY KEY index_name (column list);
18
REPAIR TABLE tbl_name QUICK;
19
SHOW INDEX FROM tbl_name;