Monday, January 7, 2008

Usage of CAST in SQL

CAST( Var AS Type)
e.g.
Select CAST(1 AS Boolean);
true
Select CAST("123" AS INT);
123

No comments: