Character to Varchar:
>>-VARCHAR--(--character-string-expression----+-------------+--->
'-,--integer--'
>----)---------------------------------------------------------><
Datetime to Varchar: >>-VARCHAR--(--datetime-expression--)-------------------------->< |
The schema is SYSIBM.
The VARCHAR function returns a varying-length character string representation of a character string or datetime value.
The result of the function is a varying-length string (VARCHAR data type). If the first argument can be null, the result can be null; if the first argument is null, the result is the null value.
Character to Varchar
Datetime to Varchar
Example:
SELECT VARCHAR(JOB)
INTO :JOB_DESC
FROM EMPLOYEE
WHERE LASTNAME = 'QUINTANA'