Skip to content

Instantly share code, notes, and snippets.

@328
Created December 24, 2014 07:42
Show Gist options
  • Save 328/9122b0dd0c961a717532 to your computer and use it in GitHub Desktop.
Save 328/9122b0dd0c961a717532 to your computer and use it in GitHub Desktop.
create procedure hoge()
begin
declare counter int;
declare hogehoge int;
set @counter = 1;
while @counter < 100 do
set @hogehoge = ceil(RAND()*30000);
update kadai1 set id=1 where id=@hogehoge;
set @counter = @counter +1;
select @hogehoge;
end while;
end
//
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment