Created
July 5, 2012 17:35
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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