HP Neoview SQL Reference Manual page 133

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

for (int i = 0; i < 10; i++)
{
switch (i)
case 0:
System.out.println("");
stmt = connection.createStatement();
rs = stmt.executeQuery(sqlText);
System.out.println(sqlText);
break;
default:
rs = null;
continue;
}
ResultSetMetaData rsMD = rs.getMetaData();
System.out.println("");
for (int j = 1; j <= rsMD.getColumnCount(); j++)
{
System.out.println(rsMD.getColumnName(j));
}
rowNo = 0;
while (rs.next())
{
rowNo++;
System.out.println("");
System.out.println("--- SQL operation complete");
rs.close();
}
connection.close();
}
catch (SQLException e)
{
SQLException nextException;
nextException = e;
do
{
System.out.println(nextException.getMessage());
System.out.println("SQLState
System.out.println("Error Code " + nextException.getErrorCode());
} while ((nextException = nextException.getNextException()) != null);
}
}
}
{
for (int j=1; j <= rsMD.getColumnCount(); j++)
{
System.out.println(rs.getObject(j));
}
}
" + nextException.getSQLState());
EXPLAIN Statement
133

Advertisement

Table of Contents
loading

Table of Contents