Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. do $$
  2. begin
  3. for d in 0..1000000 loop
  4. INSERT INTO CARS (c_brand,c_engine, c_color) values ((select brand from brand order by random() limit 1),(select engine from engine order by random() limit 1),(select color from color order by random() limit 1));
  5. end loop;
  6. end;
  7. $$
  8. ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement