Re: Deleting entries from multiple tables

From: manidegr8 <engineer(dot)usman(at)ymail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Deleting entries from multiple tables
Date: 2010-11-30 10:00:05
Message-ID: 1291111205481-3285832.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


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.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Carla 2010-11-30 13:22:43 Re: subselect and left join not working?
Previous Message Achilleas Mantzios 2010-11-30 08:36:29 Re: Deleting entries from multiple tables