On 11/20/06, vincent <vincent@iim.nctu.edu.tw> wrote:
> When insert a null value in foreign key fields, an error occurs.
>
> CREATE TABLE TGroup (
> C_Group_ID CHAR(8) NOT NULL,
> C_Group_Name VARCHAR(50),
> C_Group_Parent CHAR(8) NOT NULL,
> CONSTRAINT TGroup_C_Group_Parent_fkey FOREIGN KEY (C_Group_Parent)
That's because your C_Group_Parent column has a Not Null constraint
and you can't insert null values in a Not Null columns
--
regards,
Jaime Casanova
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."
Richard Cook