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: 

Delete rows from database using a wildcard

Former Member
0 Kudos
823

Hi all,

I would like to delete rows from a database table using a wildcard, e.g.

DELETE FROM /BIC/AFBC01_O6

WHERE /bic/zcs_item = '58%'.

So I want to delete all items starting with '58', but it doesn't work. Although there are existing entries starting with '58', sy-subrc is 4. Does anyone have a clue what I'm doing wrong?

Thanks and best regards,

Markus

1 ACCEPTED SOLUTION

Former Member
0 Kudos
227

Hi,

If you are using wild cards in the statement you always use as below :

where fieldname like '58%'.

Thanks,

Sriram Ponna.

2 REPLIES 2

Former Member
0 Kudos
228

Hi,

If you are using wild cards in the statement you always use as below :

where fieldname like '58%'.

Thanks,

Sriram Ponna.

Former Member
0 Kudos
227

Thanks a lot!