re : default value not working?

From: <pejac(at)altern(dot)org>
To: pgsql-novice(at)postgresql(dot)org
Subject: re : default value not working?
Date: 2001-05-07 15:36:57
Message-ID: 200105071542.f47Fg0A50318@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi,

No default values works, but default values works
only if no value( no '' or null ) was getting to this rows ...
example :

create table test ( name varchar(1) default 'N',id integer)

# we insert values except in name column
insert into test(id) values(12);

select * from test

N 12

insert into test values('',13);
select * from test

13

And is the same for null value

Cheers,

PEJAC Pascal

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2001-05-07 15:39:21 Re: default value not working?
Previous Message Michael R. Jinks 2001-05-07 15:16:56 Re: Install of postgresql