Back to Browse

Cast and Convert function. Session 16

127 views
Apr 21, 2024
15:20

Cast and Convert CAST and convert function converts a value (of any type) into a specified datatype. ------------------------------------------------------------------------------------------------------ select * from company select cast(id as char)+first_name from company select convert(char,id)+first_name from company select convert(varchar,joining_date,103) from company where id=2 select cast('sdfsdf' as int) select try_cast('dfsdf' as int) select convert(int,'dfsdf') select try_convert(int,'dfsdf')

Download

0 formats

No download links available.

Cast and Convert function. Session 16 | NatokHD