Skip to content

Instantly share code, notes, and snippets.

@johnryan1982
Created July 5, 2012 17:35
Show Gist options
  • Save johnryan1982/3055094 to your computer and use it in GitHub Desktop.
Save johnryan1982/3055094 to your computer and use it in GitHub Desktop.
Quick way to generate multiple SQL INSERT statements etc. using a browser's console
str = '';
for(var i=0; i<1000; i++){
str += "INSERT INTO VALUES ("+i+1000+")...;";
}
document.getElementsByTagName('body')[0].innerHTML = "<textarea>"+str+"</textarea>";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment