FileDocCategorySizeDatePackage
ShowTable.javaAPI DocExample585Sat May 29 21:54:36 BST 2004None

ShowTable

public class ShowTable extends Object
List the Column names in an SQL database table.

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

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