Is CAST function used in SQL-expressions that use UNION?
Such function does exist - CAST ( { expression | NULL } AS data_type [(length)] ). CAST NULL option is especially useful in queries with UNION which require column types match.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
SQL quizzes
Sign Up Now
or Subscribe for future quizzes