pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: H. Hall <hhall1001@reedyriver.com>
To: Jagadeesh <mnjagadeesh@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: can I update multiple table at a time?
Date: Fri, 10 Oct 2008 07:07:27 -0400
Message-ID: <48EF376F.8050307@reedyriver.com> (raw)
In-Reply-To: <4ba626d0-b2b5-4421-8df1-1bb39d4a858b@t39g2000prh.googlegroups.com>
References: <4ba626d0-b2b5-4421-8df1-1bb39d4a858b@t39g2000prh.googlegroups.com>

Jagadeesh wrote:
> Hello Gurus,
>
> Is it possible to update two table using single sql statement? huh?
> let me be clear
>
> I have table master with state and date field. And in history table I
> have same fields i.e., state and date. I'm writing an update statement
> to set 'open' state records  to 'closed' state after 7. both table can
> be joined using id.
>
> Any thoughts?
>
> Thanks
>
>   
Update a view using the rule system?

See docs on rules:   
http://www.postgresql.org/docs/8.3/static/rules-update.html

and this thread:

http://forums.devshed.com/postgresql-help-21/rules-views-and-updating-multiple-tables-58288.html
 
cheers,
HH




-- 
H. Hall
ReedyRiver Group LLC
http://www.reedyriver.com




view thread (7+ messages)  latest in thread

Message-ID: <48EF376F.8050307@reedyriver.com>
Permalink:  ../48EF376F.8050307@reedyriver.com/
Also on:    postgresql.org/message-id/48EF376F.8050307@reedyriver.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-admin@postgresql.org
  Cc: hhall1001@reedyriver.com, mnjagadeesh@gmail.com
  Subject: Re: can I update multiple table at a time?
  In-Reply-To: <48EF376F.8050307@reedyriver.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