Cornelius19
Technical User
- Mar 9, 2007
- 26
Hello,
I would like to find all the records that contain only digits. So far, I have this:
It returns only ten results, each containing a single digit. What I need is to find all the records containing only digits, like '378', '2005', etc. but not records containing both digits and other stuff (e.g. letters) like 'I95' or 'P2P'.
Any idea?
Cornelius
I would like to find all the records that contain only digits. So far, I have this:
Code:
SELECT *
FROM tmp1
WHERE (word LIKE N'[0-9]')
It returns only ten results, each containing a single digit. What I need is to find all the records containing only digits, like '378', '2005', etc. but not records containing both digits and other stuff (e.g. letters) like 'I95' or 'P2P'.
Any idea?
Cornelius