I am having trouble deleting from multiple tables.
I am using the code below to delete from multiple tables:
DELETE
FROM usession,
upklist,
projshar USING usession
LEFT JOIN upklist
ON upklist.session_id = usession.session_id
LEFT JOIN Projshar
ON projshar.session_id = usession.session_id
WHERE usession.session_id =
(SELECT session_id
FROM USESSION
WHERE delete_session_id IS NULL
AND user_id =
(SELECT user_id FROM users WHERE regexp_like(USER_NAME, 'gfcashmo', 'i')
)
);
I am using sql developer connection to an oracle database and get the following error
which references the second line - FROM usession,
Error at Command Line:274 Column:13 Error report: SQL Error: ORA-00933: SQL command not properly ended 00933. 00000 - "SQL command not properly ended" *Cause:
*Action: