equal
deleted
inserted
replaced
|
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 } |