File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes jdbc java insert program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "jdbc java insert program" Watch "jdbc java insert program" New topic
Author

jdbc java insert program

dedeepya pilla
Greenhorn

Joined: Jan 11, 2013
Posts: 3
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
Kemal Sokolovic
Bartender

Joined: Jun 19, 2010
Posts: 825
    
    5

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!


The quieter you are, the more you are able to hear.
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3433
    
  47

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

Joined: Jan 11, 2013
Posts: 3
yes thanks it working now
i forgot to close the connection
now it is working
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jdbc java insert program
 
Similar Threads
OutOfMemeoryException when inserting a pdf in PostgreSql
Updation problem in JDBC
A question about JDBC database access
database connectivity using java
unable to connect to sql server 2000 thru weblogic