tag:blogger.com,1999:blog-8712770457197348465.post2923997268648779000..comments2024-03-29T05:54:46.190-07:00Comments on Javarevisited: How to check if ResultSet is empty in JDBC Java - Example Tutorialjavin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-8712770457197348465.post-24943406510904951592021-06-27T14:02:58.607-07:002021-06-27T14:02:58.607-07:00This was a very helpful breakdown of the resultset...This was a very helpful breakdown of the resultset's methods. Thanks for taking the time to do the write-upBrandonhttps://www.blogger.com/profile/00297931261642365394noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-4922581239811580812021-05-05T13:54:14.902-07:002021-05-05T13:54:14.902-07:00Great. Its very useful. Was wondering why the 1st ...Great. Its very useful. Was wondering why the 1st row is always missing. Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-86469278595026921802019-11-29T02:25:26.938-08:002019-11-29T02:25:26.938-08:00great article, it's very informative and to th...great article, it's very informative and to the point! love it!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-33593490631356852392019-06-13T04:24:07.795-07:002019-06-13T04:24:07.795-07:00thank for
try {
if (JUSelect.getRecords(J...thank for <br /><br /> try {<br /> if (JUSelect.getRecords(JUDBCConnect.createConnection(null), JUHData.TableName.TABLENAME, null)<br /> .next() == false) {<br /> saveSalesObj();<br /> checkingAuthentication(JUDBCConnect.createConnection(null));<br /> }<br /> } catch (SQLException e) { // TODO Auto-generated catch block<br /> System.out.println(e.getMessage());<br UCreationshttps://www.blogger.com/profile/04748790184176058191noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-50098312807874476342016-10-10T18:03:35.391-07:002016-10-10T18:03:35.391-07:00Hello @Fredy, yes, ResultSet rs = cs.executeQuery(...Hello @Fredy, yes, ResultSet rs = cs.executeQuery(); is not needed, I'll remove it. Thanks for pointing it outjavin paulhttps://www.blogger.com/profile/15028902221295732276noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-90081654139158033902016-10-10T10:56:29.040-07:002016-10-10T10:56:29.040-07:00Hi, It is a good post about how to check if a resu...Hi, It is a good post about how to check if a resulset is empty or not, thank so much I personaly learn alot about this topic.<br /><br />There are a thing that I dont understand in the last part of the code:<br />ResultSet rs = stmt.executeQuery("SELECT * from Employee"); ResultSet rs = cs.executeQuery(); <br /><br />I think that this is a typing error, checkout if that is true, if it Fredy Mosquera Lemushttps://www.blogger.com/profile/04863828508880956678noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-41589888853145911672016-10-10T09:50:55.147-07:002016-10-10T09:50:55.147-07:00This comment has been removed by the author.Fredy Mosquera Lemushttps://www.blogger.com/profile/04863828508880956678noreply@blogger.com