标签:ar sp on as sql mysql br ca class
1,把一个表中的字段更新到另一个表中
delimiter // drop procedure if exists pro_test; create procedure pro_test(out parm int) begin declare i int; set i=1; while i <= 50 do update room_room set providers_id=i+5 where providers_url like concat(‘/space_pic/test%‘,i,‘%‘); set i=i+1; end while; end // delimiter ;
标签:ar sp on as sql mysql br ca class
原文地址:http://my.oschina.net/guanshanyue1990/blog/351287