Hey there!!!!!.......I'm kind of having a problem with creating a foreign key in the derby database on the netbeans platforms.Can anyone help me please?
Clif40RD
0
Junior Poster in Training
Recommended Answers
Jump to PostYou'll need to be more specific.
Jump to PostOK, I've finally got Netbeans running and connecting to a local (embedded) database that I created manually with IJ, so I've got a handle on what you are talking about. As it happens, there is a way to add a foreign key to a table in Netbeans, but it isn't …
Jump to PostJust to make sure we're on the same page: you went to the 'Foreign Keys' section for the 'Animal_Cruelty' table, selected 'Execute Command', and entered the following code (or something like it):
ALTER TABLE APP.Animal_Cruelty ADD CONSTRAINT animal_cruelty_branch_fk FOREIGN KEY branch_codes REFERENCES Branch_and_Branch_Code (branch_codes)
and executed …
Jump to PostThis is where you will find the information about the foreign key constraint after it is created.
Jump to PostAnd did the constraint show up under Foreign Keys? It won't be listed with the field itself.
All 17 Replies
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
Clif40RD
0
Junior Poster in Training
Clif40RD
0
Junior Poster in Training
Schol-R-LEA
1,446
Commie Mutant Traitor
Featured Poster
Clif40RD
0
Junior Poster in Training
Clif40RD
0
Junior Poster in Training
Schol-R-LEA
1,446
Commie Mutant Traitor
Featured Poster
Schol-R-LEA
1,446
Commie Mutant Traitor
Featured Poster
Clif40RD
0
Junior Poster in Training
Schol-R-LEA
1,446
Commie Mutant Traitor
Featured Poster
Clif40RD
0
Junior Poster in Training
Schol-R-LEA
1,446
Commie Mutant Traitor
Featured Poster
Clif40RD
0
Junior Poster in Training
Schol-R-LEA
1,446
Commie Mutant Traitor
Featured Poster
Clif40RD
0
Junior Poster in Training
Schol-R-LEA
1,446
Commie Mutant Traitor
Featured Poster
Clif40RD
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.