pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Davis <mdavis@sevainc.com>
To: 'Christian Anton' <christiananton@hotmail.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: RE: URGENT HELP NEEDED
Date: Fri, 4 May 2001 17:55:55 -0600
Message-ID: <01C0D4C3.7CCE73F0.mdavis@sevainc.com> (raw)

Here is an example:

CREATE TABLE membershipextras
(
    MemberID                        int4 NOT NULL DEFAULT 0,
    Type                            char(1) NOT NULL DEFAULT '1',
    GenericField                    char(1),
    GenericOneToOne2                int4,
    GenericOneToOne3                int4,
    GenericText2                    varchar(32),
    GenericText3                    varchar(32),
    PaidThrough                     datetime,
    Note                            text,
    PRIMARY KEY (MemberID, Type),
    CONSTRAINT MembershipExtrasMemberID_fk FOREIGN KEY (MemberID) REFERENCES Membership(MemberID) ON DELETE CASCADE
);


-----Original Message-----
From:	Christian Anton [SMTP:christiananton@hotmail.com]
Sent:	Monday, April 30, 2001 10:10 PM
To:	pgsql-admin@postgresql.org
Subject:	URGENT HELP NEEDED

Hello,

I'm a college student in a db development course. I use postgres 7.03 on
RedHat 7.1, I need help setting foreign key constraints and I cannot find in
the doc's and I cannot access postgres.org. I have a db due literally
yesterday, if I can't get it in tomorrow I lose my hard earned 'A'.
HELP! PLEASE!

I'm alomost sure I've done this before on Psql by simply stating

"CONSTRAINT YADDA_FK FOREIGN KEY (SHMACKITY) REFERENCES SHMACK(SMACKITY)"

Foreign key support is supposed to be in now right???

Please, cannot stress how important this is to me enough.


C. Anton



---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly




view thread (4+ messages)  latest in thread

Message-ID: <01C0D4C3.7CCE73F0.mdavis@sevainc.com>
Permalink:  ../01C0D4C3.7CCE73F0.mdavis@sevainc.com/
Also on:    postgresql.org/message-id/01C0D4C3.7CCE73F0.mdavis@sevainc.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mdavis@sevainc.com, christiananton@hotmail.com
  Subject: Re: URGENT HELP NEEDED
  In-Reply-To: <01C0D4C3.7CCE73F0.mdavis@sevainc.com>
  References: <01C0D4C3.7CCE73F0.mdavis@sevainc.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox