Re:dash SQLクエリ内で変数を使う方法

メモ。クエリが複数になるとエラーになるっぽい

SELECT id,
       (SELECT @date := huga) AS date,
FROM hoge