Skip to content

Instantly share code, notes, and snippets.

@keehyun2
Created July 29, 2017 04:33
Show Gist options
  • Save keehyun2/63fba89fa7c7b7bff1c73ac76af9902a to your computer and use it in GitHub Desktop.
Save keehyun2/63fba89fa7c7b7bff1c73ac76af9902a to your computer and use it in GitHub Desktop.
SELECT test_function() AS id, @level AS level, @id, @loop_cnt
FROM (
SELECT @start_with := 0,
@id := 0,
@level := 0,
@loop_cnt := 0
) vars, test_k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment