I know this is not a basic command but can anyone explain to me the use of command called "cast"? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

I know this is not a basic command but can anyone explain to me the use of command called "cast"?

25th Feb 2016, 6:34 PM
Hendrik Jacobus Janse van Rensburg
Hendrik Jacobus Janse van Rensburg - avatar
1 Answer
+ 2
Cast takes a value of any type and returns a value of the specified type. The syntax is: CAST(expr AS type) see: http://dev.mysql.com/doc/refman/5.7/en/cast-functions.html for more detail.
24th Apr 2016, 10:47 AM
Xaeros
Xaeros - avatar