mysql - Filtering for only integer/numeric values in a varchar field -
i have table member id column (non-pk) should integers. many null or non-integer values mixture of letters, numbers, , other random characters (the field of type varchar). want select rows containing valid member id's (i.e. integers or numeric values). i'm working in sql workbench. in advance!
because i'm connecting redshift, syntax is
where column ~ '[0-9].+'
Comments
Post a Comment