Advertisement
Guest User

Untitled

a guest
Aug 20th, 2014
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. BEGIN
  2. declare last_inserted_number VARCHAR(100) DEFAULT '0800100200';
  3. declare last_inserted_message VARCHAR(100) DEFAULT 'Lorem Ipsum';
  4. declare le_keyword VARCHAR(100) DEFAULT 'loan';
  5.  
  6. set last_inserted_number = NEW.dest_msisdn;
  7. set last_inserted_message = NEW.text_message;
  8. set le_keyword = 'loan';
  9.  
  10. if ( not exists(select id from transactions where tel = last_inserted_number) && last_inserted_message = le_keyword) then
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement