Use Convert to transform any value into a particular datatype

SQL SQL

Posted by admin on 2023-01-29 09:51:45 |

Share: Facebook | Twitter | Whatsapp | Linkedin Visits: 604


Use Convert to transform any value into a particular datatype

This is used to convert a value into a defined datatype. For example, if you want to convert a particular value into int datatype then a convert function can be used to achieve this. For example,

Syntax

1
SELECT CONVERT(int, 27.64)

Leave a Comment: