<div id="_htmlarea_default_style_" style="font:10pt arial,helvetica,sans-serif"><DIV>Merci pour vos
réponses.</DIV>
<DIV> </DIV>
<DIV>J'ai une autre question, lorsque je fais un select avec "FOR UPDATE" est t'il possible de détecter qu'un enregistrement à déjà été selectionner par ce type de requête sans attendre le timeout
?</DIV>
<DIV> </DIV>
<DIV>Merci de votre aide.</DIV>
<DIV> </DIV>
<DIV>Vincent Lemaire.<BR><BR>On Mon, 17 Dec 2007 08:40:44 +0100<BR>"Stéphane A. Schildknecht" <STEPHANE(dot)SCHILDKNECHT(at)POSTGRESQLFR(dot)ORG>wrote:<BR>> Guillaume Lelarge a écrit :<BR>>> Lemaire Vincent wrote:<BR>>> <BR>>>> J’aimerais savoir si en postgreSQL il existe comme dans <BR>>>>MySQL un mot clé<BR>>>> permettant de créer ou modifier un élément.<BR>>>><BR>>>> Sur MySQL c’est le mot clé REPLACE qui est utilisé comme <BR>>>>un INSERT, mais<BR>>>> dans postgreSQL cela ne fonctionne pas.<BR>>>><BR>>>> Existe-t-il un élément du même genre ?<BR>>>><BR>>>> <BR>>><BR>>> Non, ça n'existe pas.<BR>>><BR>>><BR>>> <BR>> <BR>> Une solution « simple » consiste à créer un déclencheur <BR>>sur l'insertion<BR>> ou la mise à jour qui teste l'existence avant <BR>>insertion/MAJ.<BR>> <BR>> SAS<BR>> <BR>> --
<BR>> Stéphane SCHILDKNECHT<BR>> Président de PostgreSQLFr<BR>> Tél. 09 53 69 97 12<BR>> http://www.postgresqlfr.org<BR>> <BR>> <BR>> ---------------------------(end of <BR>>broadcast)---------------------------<BR>> TIP 1: if posting/reading through Usenet, please send an <BR>>appropriate<BR>> subscribe-nomail command to <BR>>majordomo(at)postgresql(dot)org so that your<BR>> message can get through to the mailing list
<BR>>cleanly<BR><BR></DIV></div>