Delimiter$$
CREATE TRIGGER after_finisher_update
AFTER UPDATE ON Booklist1
FOR EACH ROW
BEGIN
UPDATE Booklist1
SET Finished = 'yes'
WHERE Current_Page = Page_Count
END $$
I have a table with multiple columns that forms a booklist (title, author... ect). I want my "Finished" Column (which defaults to no) to switch to "yes" once current_page = page_count.
- Can someone please explain what delimiter means and what delimiter$$ means?
- When I conclude with END$$ (omitted from code above) my terminal functions improperly. Whatever I type just goes into the console and gets returned word for word but does nothing. Does anyone know this error? I tried to look it up a bit but could find nothing. It happens with other entries too.
Thank you.