How to query the first 2 Characters of a Field

G

Guest

Good Morning;
I am running a query against an Oracle table and only want to select
anything that starts with "ZW" I have tried the "like" option and this did
not work.

Any help would be appreciated

Thanks

Chomp
 
D

Douglas J. Steele

Don't forget the quotes too! <g>

Like "ZW*"

or

Like 'ZW*'

Remember, as well, that if you're using ADO, the wild card is %, not *:

Like "ZW%"

or

Like 'ZW%'
 
G

Guest

Thanks very much..... worked like a charm

Chomp

Douglas J. Steele said:
Don't forget the quotes too! <g>

Like "ZW*"

or

Like 'ZW*'

Remember, as well, that if you're using ADO, the wild card is %, not *:

Like "ZW%"

or

Like 'ZW%'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top