public inbox for gentoo-user-de@lists.gentoo.org
 help / color / mirror / Atom feed
From: Michael Kaufmann <mk@isi-it.ch>
To: gentoo-user-de@lists.gentoo.org
Subject: Re: [gentoo-user-de] OT: Mysql DELETE FROM Syntaxfehler?
Date: Sat, 20 Nov 2004 12:25:54 +0100	[thread overview]
Message-ID: <1100949954.1696.3.camel@michael_linux> (raw)
In-Reply-To: <20041120112407.4E84F5A011C@rubidium.confixxlogin.de>

Keine Ahnung welche Datenbank du verwendest, aber wenn du einen
forentkeys setzt mit cascade (delete) dann werden die Detaildatensätze
automatisch gelöscht, und du musst dich nicht selbst drum kümmern. Ist
auch die schönere Variation 

On Sa, 2004-11-20 at 12:23, Daniel Rindt wrote:
> Hallo,
> 
> bisher habe ich es noch nicht benötigt, aber ist es überhaupt möglich mit
> einem DELTE in mehreren Tabellen mittels JOIN zu löschen?
> 
> Hier meine Syntax:
> ===
> DELETE FROM Auftraege, Kundendaten 
> LEFT JOIN Kundendaten ON Kundenddaten.idKundendaten=Auftraege.idKundendaten
> WHERE Auftraege.idCC='c3935816c04ca1dbb77af1caaf605b64' AND
> Auftraege.idAuftrag='3';
> ===
> 
> Leider funktioniert das nicht, der Wert in Auftraege.idKundendaten wird auch
> erst bekannt wenn ich in dieser Tabelle vorher ein SELECT asuführe, dies
> muss ich jedoch nach möglichkeit unterlassen. Die Tabellen sind sozusagen
> dort miteinander Verknüpft.
> 
> 
> Vielleicht kann mir jemand von Euch einen Tip geben?! ;)
> 
> Mit freundlichen Grüßen
> Daniel
> 
> 
> --
> gentoo-user-de@gentoo.org mailing list
-- 
************************************
* Michael Kaufmann		     *
* Research & Develepment	     *
*				     *
* inspiring systems integration AG *
* Industriestr. 158		     *
* FL-9493 Mauren		     *
*				     *
* Tel:00423 232 97 00		     *
* Fax:00423 232 97 01		     *
* Homepage:www.isi-it.ch	     *
* email:mk@isi-it.ch		     *
************************************		

		


--
gentoo-user-de@gentoo.org mailing list


  reply	other threads:[~2004-11-20 11:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-20 11:23 [gentoo-user-de] OT: Mysql DELETE FROM Syntaxfehler? Daniel Rindt
2004-11-20 11:25 ` Michael Kaufmann [this message]
2004-11-20 11:45 ` Erik Wasser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1100949954.1696.3.camel@michael_linux \
    --to=mk@isi-it.ch \
    --cc=gentoo-user-de@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox