Joerg Rossdeutscher wrote:
Ich habe sowas im Einsatz, Pseudocode, ungequotet:
UPDATE SET name="ratti" WHERE id=13 if mysql_affected_rows == 0 { INSERT SET name="ratti" , id=13 }
Vielleicht geht es ja erst den INSERT und bei einer Schlüsselverletzung dann den UPDATE zu machen. Bis denne Jürgen Busse -- --------------------------------------------------------------------- Kluge Leute können sich dumm stellen, das Gegenteil ist schwieriger. (Kurt Tucholsky) --------------------------------------------------------------------- IMPORTANT NOTICE: This email is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and email confirmation to the sender. If you use Outlook then please do not put my email address into your address-book so that WHEN you get a virus it won't use my address in the From field. begin LOVE-LETTER-FOR-YOU.TXT.vbs No virus, just text!!!!! Outlook is great! End