pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
To: Archana K N <archanakknn@gmail.com>
To: PostgreSQLPHP PostgreSQLPHP <pgsql-php@postgresql.org>
Subject: Re: UPDATE (SELECT ) is not working................
Date: Fri, 17 Jan 2014 22:33:02 +1300
Message-ID: <52D8F8CE.4080502@catalyst.net.nz> (raw)
In-Reply-To: <CACa6=i2M7HRJDpJRwZj6ckotLe9nRd9TgAi8_cdFiVg-S92ijA@mail.gmail.com>
References: <CACa6=i2M7HRJDpJRwZj6ckotLe9nRd9TgAi8_cdFiVg-S92ijA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-php>

On 17/01/14 21:28, Archana K N wrote:

>
> ""*/my_db=# update test set id=g.id2 from (select id2 from test2)as g ;/*
> */UPDATE 0/*
> ""
>

'UPDATE 0' means 0 rows where found to update. So everything is working 
fine, but your query search criteria is finding no candidate rows to 
change. This is purely a data issue.

Regards

Mark



-- 
Sent via pgsql-php mailing list (pgsql-php@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php



view thread (4+ messages)

Message-ID: <52D8F8CE.4080502@catalyst.net.nz>
Permalink:  ../52D8F8CE.4080502@catalyst.net.nz/
Also on:    postgresql.org/message-id/52D8F8CE.4080502@catalyst.net.nz

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: mark.kirkwood@catalyst.net.nz, archanakknn@gmail.com
  Subject: Re: UPDATE (SELECT ) is not working................
  In-Reply-To: <52D8F8CE.4080502@catalyst.net.nz>
  References: <CACa6=i2M7HRJDpJRwZj6ckotLe9nRd9TgAi8_cdFiVg-S92ijA@mail.gmail.com> <52D8F8CE.4080502@catalyst.net.nz>

* 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