MySQL user defined variable
I am using MySQL 5.1.54 and would like to define a user variable. Have tried the following with no results.
use business select name,c_num from clients where rep='@rep'; set @rep=rep @rep=3 or @rep:=3 Does any one have any idea what I am doing incorrect? Thank you, wayne schmtzway@yahoo.com |
This seems to cover it https://dev.mysql.com/doc/refman/5.1...statement.html
Code:
mysql> select * from tab1; |
All times are GMT -5. The time now is 01:26 PM. |