Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BEGIN
- UPDATE checkinInfo
- SET checkinCount = NEW.checkinCount
- WHERE bid = NEW.bid
- AND checkinDay = NEW.checkinDay
- AND checkinTime = NEW.checkinTime
- AND NEW.checkinCount IS NOT NULL
- AND NEW.checkinCount > 0;
- UPDATE business
- SET numCheckins = NEW.checkinCount
- WHERE bid = NEW.bid
- AND NEW.checkinCount IS NOT NULL
- AND NEW.checkinCount > 0;
- RETURN NEW;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement