javadb/org/homelinux/largo/app/App.java
author Markus Bröker <mbroeker@largo.dyndns.tv>
Wed, 26 May 2010 13:08:42 +0200
changeset 124 8a983ee5fab7
parent 123 07b2c0b991af
child 135 f837cf975e95
permissions -rw-r--r--
md5rec: the location of the header has changed i have moved the lsf.h header to lsf/lsf.h in the lsflib project committer: Markus Bröker <mbroeker@largo.homelinux.org>

package org.homelinux.largo.app;

import org.homelinux.largo.sql.client.DBClient;

public class App {
	public static void main (String args[]) {
		try {
			DBClient db = new DBClient ();
			db.query ("select * from euroleague order by team");

			while (db.hasNext ()) {
				System.out.println (db.getColumn (1));
			}

			db.close ();
		} catch (Exception e) {
			e.printStackTrace ();
		}
	}
}