pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: manidegr8 <engineer.usman@ymail.com>
To: pgsql-sql@postgresql.org
Subject: Re: Deleting entries from multiple tables
Date: Tue, 30 Nov 2010 02:00:05 -0800 (PST)
Message-ID: <1291111205481-3285832.post@n5.nabble.com> (raw)
In-Reply-To: <AANLkTikKy2cCU8st0p=Dw=JynL6VBF-vJsdYL4hsZqKX@mail.gmail.com>
References: <1291096741884-3285654.post@n5.nabble.com>
	<AANLkTikKy2cCU8st0p=Dw=JynL6VBF-vJsdYL4hsZqKX@mail.gmail.com>


yes i know about on delete cascade
it automatically delete the child when master is deleted

but the database i m working on is not built in this fashion
tables r built on default rules
so constraints r there

i m jus asking to build a procedure or function
that taking from the user and deletes the child and master records against
that input...
i hav tried it on pgadmin 111
but its not working...

please guide me
-- 
View this message in context: http://postgresql.1045698.n5.nabble.com/Deleting-entries-from-multiple-tables-tp3285654p3285832.html
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.



view thread (5+ messages)

Message-ID: <1291111205481-3285832.post@n5.nabble.com>
Permalink:  ../1291111205481-3285832.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1291111205481-3285832.post@n5.nabble.com

 · 

reply

Reply instructions:

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

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: engineer.usman@ymail.com
  Subject: Re: Deleting entries from multiple tables
  In-Reply-To: <1291111205481-3285832.post@n5.nabble.com>

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

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox