• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Why insertion can not be performed in JDBC ?

 
Ranch Hand
Posts: 67
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Helo programmers, I m new to JDBC concepts and now i came to understand a little bit of JDBC such as connecting sql with java(jdbc) , creating table using jdbc application... This is what i learned now I m facing difficulty with insertion of values in database. I've created database "emp4" it consists of 3 columns(id,gmail,yahoo) Now i m trying to insert a set of values to emp4 but i didn't get any exception..... It just showing only the sysout in the console. Help me !!!



OUTPUT
INSERT INTO EMP4 (id, gmail ,yahoo) VALUES(1,'vinothvino','vinothvinoooo')
error.png
[Thumbnail for error.png]
 
author
Posts: 23959
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

vinoth vino wrote:Now i m trying to insert a set of values to emp4 but i didn't get any exception..... It just showing only the sysout in the console. Help me !!!



Actually, I think you did get an exception. There is one "catch" statement in your code, that doesn't print anything -- and it is likely, it is not showing anything because that is the code path that is taken.

Henry
reply
    Bookmark Topic Watch Topic
  • New Topic