From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Sharon Cowling <sharon(dot)cowling(at)sslnz(dot)com> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Problem with unique index |
Date: | 2002-01-13 20:53:16 |
Message-ID: | 28329.1010955196@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Sharon Cowling <sharon(dot)cowling(at)sslnz(dot)com> writes:
> INSERT INTO person
> VALUES
> (new.person_id, new.firstname, new.lastname, new.dob, new.street, new.suburb, new.city, new.homephone, new.workphone, new.mobile, new.type, new.date_approved, new.approved_by, new.vehicle_type, new.vehicle_rego, new.notes);
This is going to insert into the first N columns of person, and if I'm
counting correctly that means "new.notes" is going to wind up in the
drivers_licence column. Perhaps you want to call out the target columns
explicitly in the INSERT command.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Paulo J. Matos | 2002-01-13 22:04:16 | pg with different sql? |
Previous Message | Stephan Szabo | 2002-01-13 20:50:00 | Re: Problem with unique index |