Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: Java  |  size: 0.32 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.         public static void createDatabase() throws Exception {
  2.                
  3.                 Class.forName("org.sqlite.JDBC");
  4.                 Connection conn = DriverManager.getConnection("jdbc:sqlite:flaggedUrl.db");
  5.                 Statement stat = conn.createStatement();
  6.                 stat.executeUpdate("create table if not exists flagged(url, parentUrl, weight);");
  7.             conn.close();
  8.         }