mysql存儲過程樣例

樣例一:老表有三百萬數據,須要將老表加上一個字段,可是由於,數據太大,新加字段失敗,退而求其次,先建一個新表,使用select insert 導數據:sql delimiter $$ drop procedure if exists wk; create procedure wk() begin declare i int; set i = 1; while i < 11650 do insert
相關文章
相關標籤/搜索