Mailinglist Archive: opensuse-programming-de (70 mails)

< Previous Next >
Re: MySQL: affected_rows treibt mich in den Wahnsinn
  • From: "Dr. Zook" <yogi4list@xxxxxxxxxxxxxxxx>
  • Date: Tue, 30 Nov 2004 09:06:11 +0100
  • Message-id: <41AC29F3.4080106@xxxxxxxxxxxxxxxx>
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

< Previous Next >
References