Casting Types in SQL

Tyler Clark
InstructorTyler Clark

Share this video with your friends

Send Tweet

As we pull data out of our tables there are times when the types don’t match. Or what if we want to compare two values of different types? Casting is a form of changing values from one type to another. There are a couple different ways we can do this in SQL. We'll talk about a common way of casting with cast and a shorthand way :: that is specific to postgres.