• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jdbc java insert program

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Team,
im doing one jdbc program in java for insertion into msacces database,code is running fine but the values are not reflecting in the database.
but im able to retrive the table data for same kind of program nd table.


output it is showing as:1rows updated

thanks in advnace
Dedeepya
 
Bartender
Posts: 825
5
Python Ruby Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please CarefullyChooseOneForum, this topic is more suitable for JDBC forum. Also I have added code tags this time; for future reference please read UseCodeTags (<- click); with proper indentation and code tags your code is easier and more pleasant for us to read, so you will most likely get your answer faster.

Welcome to the Ranch!
 
Sheriff
Posts: 3837
66
Netbeans IDE Oracle Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There could be several reasons. Perhaps you're looking into a different database from the one you're inserting into from Java (double check the ODBC definition). You might also be missing a commit, though that doesn't look likely if this is the whole of your problematic code, since JDBC is in autocommit mode by default. (Missing commit is a source of confusion in a lot of cases, though, so I'm mentioning it here nevertheless.)
 
dedeepya pilla
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes thanks it working now
i forgot to close the connection
now it is working
 
reply
    Bookmark Topic Watch Topic
  • New Topic