Home »
MCQs »
SQL MCQs »
SQL Comments, Group By, Cast Function MCQs
What is the syntax of SQL CAST Function?
4. What is the syntax of SQL CAST Function?
- CAST (expression AS [data type])
- CAST (expression IN [data type])
- CAST (expression TO [data type])
- CAST (expression FOR [data type])
Answer: A) CAST (expression AS [data type])
Explanation:
CAST (expression AS [data type]) is the syntax of the SQL CAST function.