I have two tables where once I delete the table based on a single attribute, it would log it in another table. For example if I delete the user based on the id, it would fill it in the log table that the "'user's first name and last name' was deleted from the table"
userid | firstname | lastname |
---|
my sql for the delete is
DELETE FROM cars WHERE userid=1;
But I need to input it in a table called logs