Postgresql – SQL – On delete keep child data
Let's assume that we have two tables users and messages with the following fields: users: id, name, email messages: id, content, user_id I want to delete a user but keep all data in messages. Is there a way to do…