This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes Database subtraction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Database subtraction" Watch "Database subtraction" New topic
Author

Database subtraction

egbai mmumene
Ranch Hand

Joined: Sep 18, 2012
Posts: 43
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
Bartender

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?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Database subtraction
 
Similar Threads
Simple field comparision
EXCEPT Set Operation, Oracle, JDBC
Efficient Method for comparison
Transferring funds
sql syntax question