I am switching a database from MySQL to Postgres SQL. A select query that worked in MySQL works in Postgres but a similar delete query does not.
I have two tables of da
Use the DELETE... USING syntax:
DELETE... USING
DELETE FROM tv_episodes USING data WHERE tv_episodes.file_name = data.file_name AND tv_episodes.path = data.path AND tv_episodes.cd_name = 'MediaLibraryDrive' AND data.cd_name IS NULL;