Hi there,
In my app, I have a part that deletes a record in my SQL database, but it also deletes records with the same value.
Example:
Names
Sam
John
Sam
Neil
If I delete one of the records containing the value "Neil", both of the records containing the value Neil are deleted.
How could I stop this from happening?
I thought about having a second field in my table and giving each field an ID, but this would cause bigger problems later.
In my app, I have a part that deletes a record in my SQL database, but it also deletes records with the same value.
Example:
Names
Sam
John
Sam
Neil
If I delete one of the records containing the value "Neil", both of the records containing the value Neil are deleted.
How could I stop this from happening?
I thought about having a second field in my table and giving each field an ID, but this would cause bigger problems later.