In MySQL, CONVERT()
is a built in function that converts a value to another data type. It takes a value of one type and returns a value of the specified type.
We provide the value as an argument when we call the function, as well as the type that we want it converted to.
The CONVERT()
function is similar to the CAST()
function, which also converts between data types.