Sequence question.

From: Anthony Best <abest(at)digitalflex(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Sequence question.
Date: 2003-12-17 01:12:47
Message-ID: 3FDFAD8F.5080404@digitalflex.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I'm working on an idea that uses sequences.

I'm going to create a table like this:

id serial,
sequence int,
keyword varchar(32),
text text

for every keyword there will be a uniq sequence for it eg:

id, sequence, keyword
1, 1, foo, ver1
2, 1, bar, bar ver1
3, 2, foo, ver2
4, 2, bar, bar ver2
etc...

I could have one sequence for all keyword which would be 1,3, etc... I
would be prefer to have them in sequence. I'm sure someone has ran into
this before, any ideas?

Anthony.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2003-12-17 01:15:22 Re: Join Issues
Previous Message Bruce Momjian 2003-12-17 01:10:52 Re: UTF support in WIN32 native and Lower/Upper in 7.5 release