I need to check if the input is integer. using postgres on amazon redshift.
The following I tried
select 1,
case when ISNUMERIC(11) -- like '[0-9][0-9]'
then 'is_num'
else
'non_num'
end as xxx
I need to check if the input is integer. using postgres on amazon redshift.
The following I tried
select 1,
case when ISNUMERIC(11) -- like '[0-9][0-9]'
then 'is_num'
else
'non_num'
end as xxx