FileDocCategorySizeDatePackage
TestSQL92Syntax.javaAPI DocExample1057Thu Jun 14 17:35:46 BST 2001None

TestSQL92Syntax

public class TestSQL92Syntax extends Object

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

    new TestSQL92Syntax().process();
  
private voidprocess()

    BufferedReader in   = null;
    String         line = null;
    try {
      in = new BufferedReader(new InputStreamReader(System.in));
      System.out.println(" ");
      System.out.print("SQL92> ");
      while (!(line = in.readLine()).equals("")) {
        System.out.println("line = \"" + line + "\"");
        try {
          System.out.println(
           new oracle.jdbc.driver.OracleSql().parse(line));
        }
        catch (SQLException e) {
          System.out.println(e.getMessage());
        }
        finally {
          System.out.println(" ");
          System.out.print("SQL92> ");
        }
      }
    }
    catch (IOException e) {
      System.out.println(e.getMessage());
    }
    finally {
      if (in != null)
        try { in.close(); } catch (IOException ignore) { }
    }