You are trying to Delete the record from a Table which has a reference in another Table.
constraint is "
column is referenced by
When you try to delete a row from
Table, it comes to know that the same row has some related row in
So, you need to delete from
Table first and then delete from Table
If you want to delete a row, then you have to execute the following two queries in sequence.
DELETE FROM Tbl_Customer
WHERE UserId = [[[UserIdToDelete]]];
DELETE FROM User_History
WHERE UserId = [[[UserIdToDelete]]]