declare @T table([myField] varchar(10)) insert into @T ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for programmers

-- Enter Query Title
-- Enter Query Description

declare @T table([myField] varchar(10))

insert into @T values ('aaa')
insert into @T values ('111')
insert into @T values ('a1')

select myField
from @T
where [myField] LIKE '%[0-9]%'
AnD [myField] LIKE '%[a-zA-Z]%'

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results
:records returned in :time ms:cached