Application Development and Automation 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: 
Read only

problem is select statement !

naveenvishal
Contributor
0 Likes
800

i want to trap following strings from the field:

Field Name : x (suppose)

ABC

Abc

abc

aBC

how to write the select code to reterieve all the records above.

i.e., case sensitivity is ignored.

currently im writing: select......where x like 'Abc%'.

1 ACCEPTED SOLUTION
Read only

former_member404244
Active Contributor
0 Likes
765

hI,

Try like this

select......where x like 'Abc%' OR 'ABc%'...like this..

Regards,

Nagaraj

4 REPLIES 4
Read only

former_member404244
Active Contributor
0 Likes
765

Hi,

if u want all the records for the field ,then no need to specify the where condition.

do like this

select x from <dbtable> into table itab.

Now u will get all the records...

Regards,

Nagaraj

Read only

0 Likes
765

no ..not all records ..records containg abc with the described pattern..like abc ABC Abc aBC..

Read only

Former Member
0 Likes
765

Hi Naveen,

You can use OR condition in SELECT statement.

Like select ... from ... where X like 'abc' or X like 'Abc'.

Read only

former_member404244
Active Contributor
0 Likes
766

hI,

Try like this

select......where x like 'Abc%' OR 'ABc%'...like this..

Regards,

Nagaraj