mysql重命名表、增加多列和索引、復制表數據
重命名表:
增加多列和索引:
rename table youku_files to video_files
alter table video_info add (imgpath VARCHAR(255), website varchar(40)),add index(type)
復制表數據:
insert into video_files(id,name,disk,hash,size,date,type) select id,name,disk,hash,size,date,'youku' from youku_files
posted on 2011-10-12 17:32 小一敗涂地 閱讀(4124) 評論(0) 編輯 收藏 所屬分類: 數據庫(oracle、mysql、sql server等)相關