Skip to content

Instantly share code, notes, and snippets.

@taotetek
Created October 3, 2010 15:38
Show Gist options
  • Save taotetek/608673 to your computer and use it in GitHub Desktop.
Save taotetek/608673 to your computer and use it in GitHub Desktop.
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