Подтвердить что ты не робот

Как отобразить значение переменной в командной строке в MySQL?

Я попробовал следующее -

Я создал переменную в командной строке следующим образом:

mysql> set @myId = 1;
Query OK, 0 rows affected (0.00 sec)

Затем, чтобы отобразить его, я пробовал следующее без успеха -

    mysql> show myId;
    ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that 
corresponds to your MySQL server version for the right syntax to use near 'myId' at line 1
    mysql> show @myId;
    ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near '@myId' at line 1
    mysql> PRINT @myId;
    ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that 
corresponds to your MySQL server version for the right syntax to use near 'PRINT @myId' at line 1
    mysql> PRINT myId;
    ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that 
corresponds to your MySQL server version for the right syntax to use near 'PRINT myId' at line 1

Итак, как я могу отобразить значение @myId?

4b9b3361