LOCAL, SESSION, AND GLOBAL VARIABLES IN MYSQL : Variable Scope : Procedure Function SQL / MySQL


SQL / MySQL » Procedure Function » Variable Scope »

 

LOCAL, SESSION, AND GLOBAL VARIABLES IN MYSQL


 


mysql>
mysql> SET @cost = 5, @cost1 = 8.00;
Query OK, rows affected (0.00 sec)

mysql>
mysql> select @cost;
+-------+
| @cost |
+-------+
5     |
+-------+
row in set (0.01 sec)

mysql>
mysql> select @cost1;
+--------+
| @cost1 |
+--------+
8.00   |
+--------+
row in set (0.00 sec)

mysql>

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

SQL / MySQL

 Navioo Procedure Function
» Variable Scope