how to cast a data type in sql code example
Example 1: sql cast as
CAST('2006-04-25T15:50:59.997' AS date) AS Date,
CAST('2006-04-25T15:50:59.997' AS time) AS Time,
CAST('2006-04-25T15:50:59.997' AS datetime) AS Datetime,
Example 2: sql cast to integer
-- NOTE: this is for SQL-Oracle specifically
/*
<...> : Your personal entry
*/
-- syntax:
CAST( as ) -- in this case: = INTEGER
-- example:
SELECT CAST(MEMBER_NO as INTEGER)
FROM DUAL;