Re: new calculated column

From: Viacheslav N Tararin <taras(at)dekasoft(dot)com(dot)ua>
To: andres javier garcia garcia <andresjavier(dot)garcia(at)wanadoo(dot)es>, pgsql-sql(at)postgresql(dot)org
Subject: Re: new calculated column
Date: 2002-09-09 14:01:15
Message-ID: 3D7CA9AB.8070903@dekasoft.com.ua
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

For implicit modification you can use a trigger on the table. If you
wan't store this data, you can use view.

andres javier garcia garcia ?????:

>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
>
>---------------------------(end of broadcast)---------------------------
>TIP 3: if posting/reading through Usenet, please send an appropriate
>subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
>message can get through to the mailing list cleanly
>
>
>
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Viacheslav N Tararin 2002-09-09 14:05:06 Re: Cross tables Like%
Previous Message Bruno Wolff III 2002-09-09 13:57:31 Re: Efficiency Question