| From: | Mark Volpe <volpe(dot)mark(at)epamail(dot)epa(dot)gov> |
|---|---|
| To: | "Brian C(dot) Doyle" <bcdoyle(at)mindspring(dot)com> |
| Cc: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: Multiple Index's |
| Date: | 2000-09-21 17:29:19 |
| Message-ID: | 39CA456F.CB851388@epamail.epa.gov |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
CREATE TABLE user_info(user_id name, entry_date date, info text);
CREATE UNIQUE INDEX user_info_key ON user_info(user_id, entry_date);
"Brian C. Doyle" wrote:
>
> Hello all,
>
> How would I prevent a user from submitting information to a table once they
> have already done so for that day. I would need them to be able
> information on future dates as well as have information in the table from
> past dates from that user.
>
> I am looking for something like insert user_id, date, info where user_id
> and date are not the same... does that make sense?
>
> Brian C. Doyle
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Brian C. Doyle | 2000-09-21 17:30:02 | Re: Multiple Index's |
| Previous Message | Mitch Vincent | 2000-09-21 17:28:18 | Re: Multiple Index's |