G
Guest
Ok, so I have a database with a comments table where there is an ID field and
a Comment field, both of which are foreign keys. The table is in a one to
many relationship with the main table (comments table is the many side). So a
user can enter several comments about one item. But if the user wants to
delete a comment, they can't. An error comes up saying "Index or primary key
cannot contain a null value"
How can I change this, so that users can delete comments once the comment is
no longer needed.
Thanks for the help in advance.
-Justin
a Comment field, both of which are foreign keys. The table is in a one to
many relationship with the main table (comments table is the many side). So a
user can enter several comments about one item. But if the user wants to
delete a comment, they can't. An error comes up saying "Index or primary key
cannot contain a null value"
How can I change this, so that users can delete comments once the comment is
no longer needed.
Thanks for the help in advance.
-Justin