FileDocCategorySizeDatePackage
StoredProcedureDemo.javaAPI DocExample539Wed Jun 16 20:46:58 BST 2004None

CallableExample

public class CallableExample extends Object
FRAGMENT ONLY showing syntax of prepared statement.

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


		Connection conn = ConnectionUtil.getConnection("jabadot");

		CallableStatement cs = conn.prepareCall("{call ListDefunctUsers}");
		ResultSet rs = cs.executeQuery();

		while (rs.next()) {
			System.out.println("Defunct user: " + rs.getString("user"));
		}