• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

No output while running JDBC program with MySQL

 
Abhimanyu Jain
Ranch Hand
Posts: 151
1
Eclipse IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Following is the code that compiles without any exception or error but also shows no output:-

 
Paul Clapham
Sheriff
Posts: 21588
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This could easily happen if you had an empty "emp" table.
 
Abhimanyu Jain
Ranch Hand
Posts: 151
1
Eclipse IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you! It worked after inserting the data.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic