Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. BEGIN
  2. UPDATE checkinInfo
  3. SET checkinCount = NEW.checkinCount
  4. WHERE bid = NEW.bid
  5. AND checkinDay = NEW.checkinDay
  6. AND checkinTime = NEW.checkinTime
  7. AND NEW.checkinCount IS NOT NULL
  8. AND NEW.checkinCount > 0;
  9. UPDATE business
  10. SET numCheckins = NEW.checkinCount
  11. WHERE bid = NEW.bid
  12. AND NEW.checkinCount IS NOT NULL
  13. AND NEW.checkinCount > 0;
  14. RETURN NEW;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement