0

i was using sql before but now iam using Mysql i need to know how to print the variable.

In Sql

 Declare @name varachar(50)
set @name ='xxxxxxx'
print  @name

the result will be xxxxxxx. How to get this output in mysql.

user2302158
  • 407
  • 2
  • 5
  • 13
  • 1
    Possible duplicate of [How to display the value of a variable at the commandline in MySQL?](http://stackoverflow.com/questions/18838611/how-to-display-the-value-of-a-variable-at-the-commandline-in-mysql) – Hermanto Dec 01 '16 at 08:21

1 Answers1

2

Try this, I think this will help you:

SELECT @name
msagala25
  • 1,776
  • 2
  • 16
  • 23