MySQL Forums
Forum List  »  French

Incrémenter un champ [Résolu]
Posted by: Damien VINOUZE
Date: March 20, 2007 02:15AM


Je souhaite incrémenter de 1 un champ de type int(11) via une requête mais comment faire, j'ai besoin de votre aide.


Je crois avoir trouvé :

UPDATE documents SET visites = visites + 1 WHERE id_doc=$id;

Merci quand même

Edited 2 time(s). Last edit at 03/20/2007 02:38AM by Damien VINOUZE.

Options: ReplyQuote

Written By
Incrémenter un champ [Résolu]
March 20, 2007 02:15AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.