SQL Convert Function - SQL Training Online - Quick Tips Ep7

preview_player
Показать описание
Learn about the Convert function in the SQL Language.

The Microsoft SQL Server Convert function allows you to change the datatype of a column during a SQL query. Many times you would convert from a datetime or numeric datatype to a varchar.

READ THE ORIGINAL ARTICLE WITH SQL SCRIPTS HERE

YOUTUBE NEWS UPDATES

VISIT SQLTRAININGONLINE.COM FOR MORE VIDEO NEWS & TIPS

SUBSCRIBE FOR OTHER SQL TIPS AND NEWS!

SUBSCRIBE TO OUR EMAIL LIST!

LET'S CONNECT!
Рекомендации по теме
Комментарии
Автор

Thank you for the tips. I used it to convert the date time to date and it worked .
convert(date, BirthDate)

thiernodiallo
Автор

-- Thank you !! very nice and well timed!!

devsuper
Автор

Joey Once again You're a blessing

nabeelahmed
Автор

sir can you please explain, what's the difference between convert and cast ?
Thank u

hunzla_choudry
Автор

hai i have a question, Operand type clash: date is incompatible with int'
what is the solution for the error ?

harvindersinghsingh
Автор

One thing I was looking for is an explanation of when you would use a "Convert" over a "Cast". Like in your example of turning salary into an "int"?

jerrycain
Автор

Thank you
Thank you
Thank you
You really supper fantastic
Cause you solve a big problem that I am facing.

yasirnabeel
Автор

Hello - I need to convert a varchar that reads 100.68 to a numeric number with a decimal 100.68 that can then be calculated. Any ideas?

garyclements
Автор

is there any way to convert varchar list to int list

jeetsutaria