I've got a database with a table containing different calendars (table events
). Now I created a new table (events_backup
) and imported all entries from table events from an older backup.
Now I want to insert in the event table all entries for a specific calendar (query calendar_id = 'foo'
) from events_backup
but only if the don't exists.
How can I do that?