Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WHILE queue_length > 0 DO
- IF queue_length = 1 THEN
- SET front_id = queue;
- SET queue = '';
- ELSE
- SET front_id = SUBSTR(queue,1,LOCATE(',',queue)-1);
- SET pos = LOCATE(',',queue) + 1;
- SET q = SUBSTR(queue,pos);
- SET queue = q;
- END IF;
Add Comment
Please, Sign In to add comment