aspose file tools*
The moose likes JDBC and the fly likes Cannot insert values into a table 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 "Cannot insert values into a table" Watch "Cannot insert values into a table" New topic

Cannot insert values into a table

Vinod Awar
Ranch Hand

Joined: Nov 06, 2006
Posts: 125
Hi all,

iam trying to access postgresql database from my java program.The database is on my virtual machine.I can access dattabase but iam unable to insert values into table.I have set grant all previliges to that user.iam not getting any SQLException also. Am i missing something?pls suggest.

thanks in advance.
[ February 13, 2007: Message edited by: pramod awar ]

The biggest bankruptcy is the loss of enthusiasm
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Are you doing this insert in a transaction? Are you commiting the transaction?

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Originally posted by pramod awar:
Am i missing something?

Yeah maybe in your code... but can�t say where without it.

[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
It is sorta covered in the JavaRanch Style Guide.
subject: Cannot insert values into a table
Similar Threads
Forms problem
Arabic encoding
design advice required
hi urgent