Search:

Type: Posts; User: moekler

Search: Search took 0.07 seconds.

  1. Re: JDBC - any query and the corresponding result set

    I actually got it to work. Here's the final code:


    public void sqlQuery1(String query) {
    System.out.println("Enter you sql query:");
    this.query = scan.nextLine();

    Connection conn =...
  2. Re: JDBC - any query and the corresponding result set

    No exceptions, it just stops after printing the first employees information (name, ssn, address, etc., there are 9 columns in all). Without the i loop it only printed out the first column. Actually...
  3. JDBC - any query and the corresponding result set

    I am having difficulty outputting the result set after a user input query. I need the user to be able to input any SQL query and print out the result set with field names and corresponding data. I...
Results 1 to 3 of 3