easy way to insert same value into 2 columns - Mailing list pgsql-general

From Sebastian Boeck
Subject easy way to insert same value into 2 columns
Date
Msg-id 3F8E67AB.5000603@freenet.de
Whole thread Raw
Responses Re: easy way to insert same value into 2 columns
List 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


pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: ODBC
Next
From: Csaba Nagy
Date:
Subject: Re: easy way to insert same value into 2 columns