标签:
天,把这篇文章转移到这里,增强一下记忆,找起来也更方便。
mysqldump -u username -p password -h hname dbname tblname > file.sql
mysql -u username -p password -h hname dbname < file.sql
alter TABLE addfunds_0 CHANGE topup_type topup_type enum(‘1‘,‘2‘,‘3‘);
这个我能记住,嗯。
show create table tablename;
alter table addfunds_0 add column payout_id bigint(18) after updatetime;
alter table addfunds_0 drop column payout_id;
alter table addfunds_0 convert to character set gbk;
show character set;
select count(distinct qid) as cnt from table ;
alter table tablename add index index_name(field_name);
标签:
原文地址:http://www.cnblogs.com/peizhe123/p/4943622.html