sql - Identify Digits in text field in MS Access -


how possible identify values text in text field

for instance;

col1  thy1 d881 d282 rm01 d114 kaar 5555 kaar kaar 

expected results

results digits digits digits digits digits kaar digits kaar kaar 

i tried below, doesn't work though

select iif(tab1.col1 "[!0-9]",  tab1.col1, "with digits") results  tab1 

please clarify

thanks

select col1 tab1 col1 not "%[0-9]%" 

you should harness power of "where" clause.

update: since want preserve order , replace improper values "with digits", correct clause should this:

select iif(tab1.col1 "%[0-9]%",  "with digits", tab1.col1) results  tab1; 

note "%" signs, make sql match 0-9 position of tab1.col1.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -