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: 

problem is select statement !

naveenvishal
Contributor
0 Kudos

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

former_member404244
Active Contributor
0 Kudos

hI,

Try like this

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

Regards,

Nagaraj

4 REPLIES 4

former_member404244
Active Contributor
0 Kudos

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

0 Kudos

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

former_member192895
Participant
0 Kudos

Hi Naveen,

You can use OR condition in SELECT statement.

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

former_member404244
Active Contributor
0 Kudos

hI,

Try like this

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

Regards,

Nagaraj