Jump to content

TGSLineage2

Members
  • Posts

    94
  • Joined

  • Last visited

  • Feedback

    0%

Community Answers

  1. TGSLineage2's post in Get Info From Database to Community was marked as the answer   
    First it is necessary to know if what you need is to recover one or several values, if you need several then you must add the values of the result in a list but the following form:
    while(rs.next()){ list.add(rs.getString("name")); }
    And if you only need to retrieve a single value which is what I assume you want to do, you should limit your result to a by placing at the end of your query Limit 1
    And you could put your assignment like this:
    x = (rs.getString("name") != null) ? rs.getString("name") : "None";
  2. TGSLineage2's post in offline buffer problem on load was marked as the answer   
    In its error it says that parameter 5 has not been specified and that is true because you are only sending 4

    Well, according to the code that you have shown, you are calling a store procedure that recive apparently 5 parameters and you are only sending 4 and that is why it is possibly giving you the error in the console
×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..