Re: [GENERAL] Auto Ordering

From: "amy cheng" <amycq(at)hotmail(dot)com>
To: shawn(at)netcrafters(dot)com, pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] Auto Ordering
Date: 1999-10-27 11:25:27
Message-ID: 19991027182527.19187.qmail@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

it perhaps a bad idea to change "order" attribute for all the
records. So, IMHO, you'd better make the order as varchar(20),
so that you can insert anything between any two records.

hope this helps.

>From: "Shawn T. Walker" <shawn(at)netcrafters(dot)com>
>To: pgsql-general(at)postgreSQL(dot)org
>Subject: [GENERAL] Auto Ordering
>Date: Wed, 27 Oct 1999 13:17:21 -0400 (EDT)
>
>Hi All,
>
>I have a table of questions to be displayed to the user.
>
>Table: questions
>question_id SERIAL
>page int
>order int
>question varchar(100)
>answers text
>
>The field order is how the questions are sorted. How can I change change
>question 5 to be number one and have all the other questions re-order
>themselves?
>
>Thanks in advance.
>Shawn
>
>-------
>Shawn T. Walker <---> shawn(at)netcrafters(dot)com
>
>
>
>
>
>************
>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

Browse pgsql-general by date

  From Date Subject
Next Message Andrzej Mazurkiewicz 1999-10-27 12:49:33 FW: inheritance of functions
Previous Message Tim Joyce 1999-10-27 10:03:45 QUERY PLAN: