SQLite - printing database values - How?

Discussion in 'Plugin Development' started by zajacmp3, Jul 6, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    zajacmp3

    Hello,

    I am trying to get some values back from my database.
    It is really simple thing really but I am truly missing something.
    Code:
    System.out.println(conn.createStatement().executeQuery("Select TypeID From "+player.getName()+" Where id is 1"));
    
    I think I need to use function executeQuery cause only this is getting me something other than boolean value - ResultSet.
    And it really is getting me something... Something like -
    Code:
    [INFO] org.sqlite.RS@d88d3d
    How do I print something from database to get values inserted there.
    I only need to get int value.
     
  2. Offline

    ferrybig

    learn to use the methodes on the resultset,mit has a lot of usefull methods to recieve the data
     
Thread Status:
Not open for further replies.

Share This Page