File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Database subtraction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Database subtraction" Watch "Database subtraction" New topic

Database subtraction

egbai mmumene
Ranch Hand

Joined: Sep 18, 2012
Posts: 46
How can i minus 1 from an integer entry in a database every time a particular action is performed. The column i want to minus from has a primary key entryname
Wendy Gibbons

Joined: Oct 21, 2008
Posts: 1107

my mind is boogling how this fits into your movies database, but anyway do you know about update statements?
I agree. Here's the link:
subject: Database subtraction
It's not a secret anymore!