Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Length of field in where condition

Former Member
0 Kudos

Hi,

I'm trying to retrieve from a table only the records for which a certain field has a certain length.

I tried to use

SELECT .... Where STRLEN <field> = <value> 

but I get a syntax error.

I do not want to retrieve everything and then exclude the records I do not need.

Any solution short of using native SQL, that would allow me to achieve my requirement as stated at the beginning of the message ?

Regards,

Mihai

1 REPLY 1

Former Member
0 Kudos

I found out .

I have to use like and '_' for 1 character '__' for 2 characters and so on.

Actually the answer was here on SDN as well, but there seems not to be a way to cancel a question.