new calculated column

From: andres javier garcia garcia <andresjavier(dot)garcia(at)wanadoo(dot)es>
To: pgsql-sql(at)postgresql(dot)org
Subject: new calculated column
Date: 2002-09-05 16:53:40
Message-ID: 200209051652.g85Gqki20106@natura.cebas.csic.es
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message andres javier garcia garcia 2002-09-05 16:58:34 new calculated column
Previous Message Josh Berkus 2002-09-05 15:55:54 Re: fumbling for join syntax