Guest User

Untitled

a guest
Jan 18th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. DELIMITER ;;
  2. CREATE DEFINER=`dayz`@`%` PROCEDURE `proc_insertSurvivor`(IN `p_uniqueId` varchar(128), IN `p_playerName` varchar(255))
  3. begin
  4. insert into profile
  5. (unique_id, name)
  6. values
  7. (p_uniqueId, p_playerName)
  8. on duplicate key update name = p_playerName;
  9. insert into survivor
  10. (unique_id, start_time)
  11. values
  12. (p_uniqueId, now());
  13. select last_insert_id();
  14. end;;
  15. DELIMITER ;
Add Comment
Please, Sign In to add comment