写出设置名为name的字符型局部变量的值为’John’的SQL语句。

写出设置名为name的字符型局部变量的值为’John’的SQL语句。
【正确答案】:set @name=’john’;