javadb/org/homelinux/largo/app/App.java
changeset 100 a6d2add085d7
child 123 07b2c0b991af
equal deleted inserted replaced
99:d99503984cd5 100:a6d2add085d7
       
     1 package org.homelinux.largo.app;
       
     2 
       
     3 import org.homelinux.largo.sql.client.DBClient;
       
     4 
       
     5 public class App {
       
     6 	public static void main (String args[]) {
       
     7 		try {
       
     8 			DBClient db = new DBClient (
       
     9 					"org.apache.derby.jdbc.EmbeddedDriver",
       
    10 					"jdbc:derby:clubstatistik",
       
    11 					null, null
       
    12 			);
       
    13 
       
    14 			db.query ("select * from euroleague order by team");
       
    15 
       
    16 			while (db.hasNext ()) {
       
    17 				System.out.println (db.getColumn (1));
       
    18 			}
       
    19 
       
    20 			db.close ();
       
    21 		} catch (Exception e) {
       
    22 			e.printStackTrace ();
       
    23 		}
       
    24 	}
       
    25 }