The CONVERT function in MySQL and SQL Server converts data from one data type to another.
The syntax of the CONVERT function is as follows:
where [data type] is a valid data type in the RDBMS you are working with.
We use the following table for our example.
Table Student_Score
This table contains the following rows:
Table Student_Score
The SQL statement,
produces the following result set:
In Oracle, the CONVERT function is used differently. It converts a string from one character set to another.
Our website is made possible by displaying ads to our visitors. Please supporting us by whitelisting our website.