FileDocCategorySizeDatePackage
ListTables.javaAPI DocExample545Sat May 29 21:54:00 BST 2004None

ListTables

public class ListTables extends Object
List the Tables in an SQL database

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

		String config = args[0];
		Connection c = ConnectionUtil.getConnection(config);
		DatabaseMetaData md = c.getMetaData();
		ResultSet rs = md.getTables(null, null, "%", null);
		while (rs.next()) {
			System.out.println(rs.getString(3));
		}