Custom query has problems using @variables

OS info

Problem description

Attempting to use a SET @variable results in an error. This statement runs OK using a DB UI (Heidi in my case)

Steps to reproduce

  1. Create a custom query
  2. Type the text as shown in the attached picture
  3. See the resulting error

Many thanks,

Community Page
Last updated: