一個用戶表中有一個積分字段,假如數據庫中有100多萬個用戶,若要在每一年第一天凌晨將積分清零,你將考慮什麼,你將想什麼辦法解決?

alter table dropcolumn score;spring alter table addcolunm score int;框架 可能會很快,可是須要試驗,試驗不能拿真實的環境來操刀,而且要注意,this 這樣的操做時沒法回滾的,在個人印象中,只有inert updatedelete等DML語句才能回滾,spa 對於create table,droptable ,alter table
相關文章
相關標籤/搜索