Gotta post because this is driving me nuts.
Trying to DELETE orphans. I can successfully:
SELECT GroupID FROM Groups LEFT JOIN Users ON UsersID = UserID WHERE
UsersID IS NULL;
but when I try:
DELETE FROM Groups LEFT JOIN Users ON UsersID = UserID WHERE UsersID
IS NULL;
I get:
ERROR 1064: You have an error in your SQL syntax near 'LEFT JOIN Users
ON UsersID = UserID WHERE UsersID IS NULL' at line 1
I can also successfully:
DELETE FROM Groups WHERE GroupID = '<specific>';
I have been trying several different methods, but a little hesitant to
go to far, considering I'm DELETEing. I have been checking out past
postings, but nothing that fits this situation.
Any help on this sql would be greatly appreciated. I'm using mysql
version 3.23.55.
Thanks.
Trying to DELETE orphans. I can successfully:
SELECT GroupID FROM Groups LEFT JOIN Users ON UsersID = UserID WHERE
UsersID IS NULL;
but when I try:
DELETE FROM Groups LEFT JOIN Users ON UsersID = UserID WHERE UsersID
IS NULL;
I get:
ERROR 1064: You have an error in your SQL syntax near 'LEFT JOIN Users
ON UsersID = UserID WHERE UsersID IS NULL' at line 1
I can also successfully:
DELETE FROM Groups WHERE GroupID = '<specific>';
I have been trying several different methods, but a little hesitant to
go to far, considering I'm DELETEing. I have been checking out past
postings, but nothing that fits this situation.
Any help on this sql would be greatly appreciated. I'm using mysql
version 3.23.55.
Thanks.
Comment