Skip to content

Instantly share code, notes, and snippets.

@d3ep4k
Last active June 8, 2017 09:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d3ep4k/9824272a8ec953861a49d454da0158c9 to your computer and use it in GitHub Desktop.
Save d3ep4k/9824272a8ec953861a49d454da0158c9 to your computer and use it in GitHub Desktop.
Multiple queries using variables - Metamug Resource File
<Resource v="0.8" xmlns="http://xml.metamug.net/resource/1.0">
<Request method="GET" >
<Update>
set @count := 0
</Update>
<Query>
select @count := a from todo
</Query>
<Query>
select @count
</Query>
</Request>
</Resource>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment