easy way to insert same value into 2 columns

From: Sebastian Boeck <sebastianboeck(at)freenet(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: easy way to insert same value into 2 columns
Date: 2003-10-16 09:40:59
Message-ID: 3F8E67AB.5000603@freenet.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

whats the most simple way to insert the same value into 2 colums of
the same table?
My table is looking like this:

Spalte | Typ | Attribute
--------+---------+----------------------
id | integer | default nextval ('public.zeit_id_seq'::text)
pos_id | integer | default xxx

for the xxx i want the same value than id be inserted automatically

Regards

Sebastian

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Csaba Nagy 2003-10-16 10:03:09 Re: easy way to insert same value into 2 columns
Previous Message Richard Huxton 2003-10-16 09:37:18 Re: ODBC