Thread: [GENERAL] Fwd: [webmaster] Update query issue
---------- Forwarded message ----------
From: Jonathan S. Katz <jkatz@postgresql.org>
Date: Tue, Jan 17, 2017 at 9:33 PM
Subject: Re: [webmaster] Update query issue
To: kumar s <leelaseshukumar@gmail.com>
Cc: webmaster@postgresql.org
Hi Kumar,
This email address is for issues pertaining to the postgresql.org website. Your question is better suited for the pgsql-general@postgresql.org mailing list.
Best,
Jonathan
> On Jan 17, 2017, at 5:33 AM, kumar s <leelaseshukumar@gmail.com> wrote:
>
> Hi team thanks for giving option....
> I am getting update problem ...after update row thst row appended end of the table ...i need update row without change row position if any possible please rply .
>
>
>
> --
> Kumar
From: Jonathan S. Katz <jkatz@postgresql.org>
Date: Tue, Jan 17, 2017 at 9:33 PM
Subject: Re: [webmaster] Update query issue
To: kumar s <leelaseshukumar@gmail.com>
Cc: webmaster@postgresql.org
Hi Kumar,
This email address is for issues pertaining to the postgresql.org website. Your question is better suited for the pgsql-general@postgresql.org mailing list.
Best,
Jonathan
> On Jan 17, 2017, at 5:33 AM, kumar s <leelaseshukumar@gmail.com> wrote:
>
> Hi team thanks for giving option....
> I am getting update problem ...after update row thst row appended end of the table ...i need update row without change row position if any possible please rply .
>
>
>
> --
> Kumar
On 01/17/2017 08:43 AM, kumar s wrote: > > ---------- Forwarded message ---------- > From: *Jonathan S. Katz* <jkatz@postgresql.org > <mailto:jkatz@postgresql.org>> > Date: Tue, Jan 17, 2017 at 9:33 PM > Subject: Re: [webmaster] Update query issue > To: kumar s <leelaseshukumar@gmail.com <mailto:leelaseshukumar@gmail.com>> > Cc: webmaster@postgresql.org <mailto:webmaster@postgresql.org> > > > Hi Kumar, > > This email address is for issues pertaining to the postgresql.org > <http://postgresql.org> website. Your question is better suited for the > pgsql-general@postgresql.org <mailto:pgsql-general@postgresql.org> > mailing list. > > Best, > > Jonathan > >> On Jan 17, 2017, at 5:33 AM, kumar s <leelaseshukumar@gmail.com > <mailto:leelaseshukumar@gmail.com>> wrote: >> >> Hi team thanks for giving option.... >> I am getting update problem ...after update row thst row appended end > of the table ...i need update row without change row position if any > possible please rply . In Postgres UPDATE is actually DELETE old row, INSERT new row so the row position will change. Why is the new row being in a new position a problem? >> >> >> >> -- >> Kumar > > -- Adrian Klaver adrian.klaver@aklaver.com
On 1/17/2017 1:04 PM, Adrian Klaver wrote:
On Jan 17, 2017, at 5:33 AM, kumar s <leelaseshukumar@gmail.com<mailto:leelaseshukumar@gmail.com>> wrote:of the table ...i need update row without change row position if any
Hi team thanks for giving option....
I am getting update problem ...after update row thst row appended end
possible please rply .
In Postgres UPDATE is actually DELETE old row, INSERT new row so the row position will change.
Why is the new row being in a new position a problem?
to add to this, relations (tables) are considered unordered sets, if you want a specific order, use ORDER BY in your query.
-- john r pierce, recycling bits in santa cruz