From: andres javier garcia garcia <andresjavier.garcia@wanadoo.es>
To: pgsql-sql@postgresql.org
Subject: new calculated column
Date: Thu, 5 Sep 2002 18:58:34 +0200
Message-ID: <200209051657.g85Gvei20144@natura.cebas.csic.es> (raw)
Hi;
I've got a table with two fields and about 3000 rows, the second one is a
character field, what can have about twenty different values; of course these
values are repeated a lot of times in the table. I need to create a new
column of type integer, whose value depens on the character fields. The
values of the new column are not important, the important thing is who can I
create this column and assign a different integer to a different char value
in the other column.
Thanks
--------------
Javier
-------------------------------------------------------
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-sql@postgresql.org
Cc: andresjavier.garcia@wanadoo.es
Subject: Re: new calculated column
In-Reply-To: <200209051657.g85Gvei20144@natura.cebas.csic.es>
* 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