Trying to delete from multiple tables using SQL
问题 I have 4 tables in our application: User usession upklist projshare The last three tables contain a field called session_id . In the code below, the section in parenthesis works to get all session_id values from usession table for user "awpeople". The problem is how do I read this result set into an array and delete from all three tables where session_id is in the array results. Code: DELETE FROM usession, upklist, projshar WHERE session_id = (SELECT session_id FROM usession WHERE delete