954,580 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how to select single row from table

how to update single row from table by using a single sql query.
here im using library system.when a book is issued to the user,it should be updated to database, only which book is issued

sibymary
Newbie Poster
20 posts since Aug 2011
Reputation Points: 10
Solved Threads: 0
 

You can use something like

UPDATE `books` SET available = available - 1 WHERE book_id = <book id here>
pritaeas
Posting Expert
Moderator
5,483 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: