• 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:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

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: 23928
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
 
I like you because you always keep good, crunchy cereal in your pantry. This tiny ad agrees:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic