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
  • 417
  • 2
  • 6
  • 14
  • 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

3

Try this, I think this will help you:

SELECT @name
msagala25
  • 1,806
  • 2
  • 17
  • 24