AdBlock Detected!
Our website is made possible by displaying ads to our visitors. Please supporting us by whitelisting our website.
SQL CONVERT Function | 
| 
SQL > SQL String Functions > 
CONVERT Function
 The CONVERT function in MySQL and SQL Server converts data from one data type to another. SyntaxThe syntax of the CONVERT function is as follows: CONVERT (expression, [data type]) 
where [data type] is a valid data type in the RDBMS you are working with. ExampleWe use the following table for our example. Table Student_Score 
 This table contains the following rows: Table Student_Score 
 The SQL statement, SELECT First_Name, CONVERT(Score, Integer) Int_Score FROM Student_Score; 
produces the following result set: 
 CONVERT function in OracleIn Oracle, the CONVERT function is used differently. It converts a string from one character set to another. Syntax in OracleCONVERT (string, [new character set], [original character set]) 
 | 
Our website is made possible by displaying ads to our visitors. Please supporting us by whitelisting our website.