🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.bazy-danych
Article #195205

Re: [MySQL] Jak usuwać wiersze z tabeli w relacji?

#195205
From: Roman Tyczka
Date: Sat, 21 Jan 2017 20:59
14 lines
1153 bytes
On Sat, 21 Jan 2017 19:20:38 +0100, Borneq wrote:

> z general chcemy usuwać wszystkie wiersze dla zadanego kodu:
> delete from general where kod=:kod
> 
> teraz chcemy usunąć wszystkie wiersze z detail których hash jest równy 
> usuwanym haszom
> Jak to zrobić? Select we Where czy Join ?

trigger

-- 
pozdrawiam
Roman Tyczka
Technical Details
Message-ID: <1jm0hb94bbqu5.dlg@tyczka.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
References: <o608pm$rug$1@node1.news.atman.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: Roman Tyczka <noemail@because.no>
Newsgroups: pl.comp.bazy-danych
Subject: Re: [MySQL] Jak usuwać wiersze z tabeli w relacji?
Date: Sat, 21 Jan 2017 21:59:15 +0100
Organization: ATMAN - ATM S.A.
Lines: 14
Sender: romek@tyczka.no.found
Message-ID: <1jm0hb94bbqu5.dlg@tyczka.com>
References: <o608pm$rug$1@node1.news.atman.pl>
NNTP-Posting-Host: 94.75.90.137
Mime-Version: 1.0
X-Trace: node2.news.atman.pl 1485032355 2383 94.75.90.137 (21 Jan 2017 20:59:15 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Sat, 21 Jan 2017 20:59:15 +0000 (UTC)
User-Agent: 40tude_Dialog/2.0.15.84
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit