I have a query from table of MySQL database, and i want check: have i got this number in table and if not – println that this number not in database, if this number exist – println that this number exist. How i can do that, using Exceptions or (If) (else) construction?
Share
Assuming you’re using an in memory hsql db: