Created
October 3, 2010 15:38
-
-
Save taotetek/608673 to your computer and use it in GitHub Desktop.
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
def insert_thread(url) | |
insert_conn = DriverManager.get_connection(url) | |
cnt = 0 | |
while cnt < 10 | |
stmt = insert_conn.create_statement | |
stmt.execute("INSERT INTO watched_table (value) VALUES (1)") | |
cnt = cnt + 1 | |
sleep 3 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment