This is similar to http://stackoverflow.com/questions/1167767/check-constraint-of-string-to-contain-only-digits-oracle-sql but I want to do this for Sybase.
I have a character column 'colExp' (8 characters). I want to put a check constraint to make sure values for this column are all digits.
How can I do this? This will work but its not elegant
colExp LIKE '[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'