DELETE FROM student INNER JOIN formteam ON formteam.id1 = student.id OR formteam.id2 = student.id OR formteam.id3 = student.id WHERE formteam.groupname = 'bb'
มันโชว์เออเร่อว่า
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INNER JOIN formteam ON formteam.id1 = student.id OR formteam.id2 = student.id OR' at line 1
SELECT * FROM student INNER JOIN formteam ON formteam.id1 = student.id OR formteam.id2 = student.id OR formteam.id3 = student.id WHERE formteam.groupname = 'bb'