‎2008 Feb 06 2:13 PM
Hi All,
I have a question regarding creating primary keys in Ztables.
When I designate a field as Primary Key, It is accepting NULLs as inputs.Which is contradicting Primary key constraint. How should I enforce primary key constraint.
‎2008 Feb 06 2:18 PM
Please check the both check boxex in that field.
that is KEY and INITIAL check boxes.
‎2008 Feb 06 3:38 PM
Even though the Key And Intitial coumn has been set, while entering values in table the field is still accepting Null values.
for eg- Num (char10/Or any DE attached),
Name (Char 20). If enter records like
(<blank>, krishna),
(10, chaiyanya).
the PK field is also accepting blank values r if not entered anything also its accepting.
But this is not the case in any RDBMS. PK (Not Null and unique) is maintained.
How to go about it.
‎2008 Feb 06 2:21 PM
Select the Key column if the field should be part of the table key
‎2008 Feb 06 3:39 PM
Even though the Key And Intitial coumn has been set, while entering values in table the field is still accepting Null values.
for eg- Num (char10/Or any DE attached),
Name (Char 20). If enter records like
(<blank>, krishna),
(10, chaiyanya).
the PK field is also accepting blank values r if not entered anything also its accepting.
But this is not the case in any RDBMS. PK (Not Null and unique) is maintained.
How to go about it.