If I define a variable like set @a = "1";. How can I see that @a is a string?
If I define a variable like set @a = 1; . How can I
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You cannot determine the type of a variable in MySQL.
As an alternative, you can easily
CAST()your variable in the type you desire:More information and examples about casting in the MySQL Manual: