Re: Inserting Default Values

From: postgresql(at)fruru(dot)com
To: Mike Barrett <mike(at)daboyz(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Inserting Default Values
Date: 2002-02-07 17:17:08
Message-ID: Pine.LNX.4.44.0202071815510.6427-100000@mail.conostix.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 7 Feb 2002, Mike Barrett wrote:
> It inserts just fine, automatically taking the default value for
> id. However, the table I'm actually using is the reverse of the previous.
> Example:
>
> [Table name 'status']
> id | integer | not null default
> nextval('"status_id_seq"'::text)
> name | character varying(32) |
>
> sql=> insert into test values (,'blah');

insert into test (name) values ('blah');

--
Tycho Fruru tycho(dot)fruru(at)conostix(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Doug McNaught 2002-02-07 17:18:18 Re: Inserting Default Values
Previous Message Doug McNaught 2002-02-07 16:00:18 Re: PostgreSQL v7.2 Final Release