Re: Are these two creation commands functionally identical?

From: dterrors(at)hotmail(dot)com
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Are these two creation commands functionally identical?
Date: 2007-08-12 16:11:53
Message-ID: 1186935113.447428.17430@r34g2000hsd.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Aug 11, 5:21 am, gn(dot)(dot)(dot)(at)hive(dot)is (Ragnar) wrote:
> no these 2 are not fuctionally identical, because the second one
> does not have a NOT NULL constraint on the foreign keys,
> allowing you to insert:
> INSERT INTO sales (saleid,userid,parent_saleid)
> VALUES (100,null,100);
>

OK thank you. Besides the not null, are they otherwise identical?
The first statement is from a graphical db model tool I want to use,
the second is from my own handwritten sql. I want to see if it's
essentially the same. thanks.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gilbert Albero 2007-08-12 17:20:10 Windows XP installation problem
Previous Message Ketema 2007-08-12 16:03:34 pg_dumpall to psql -f NOT working