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

Search program on table

Former Member
0 Likes
391

Hi,

there is example how to do search for prefix on table with program

for example if i search for the word man*

i want to get the manager us manager uk

and not general manager

Regards

Chris

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
348

Hi Chris,

You can see the following code snippet.



  select single name 2
    from adrc
    into l_name2
  where name1 LIKE 'MAT%'.
  

Here the name 1 that starts with MAT.. will be fetched.

Regards,

Vimal.

2 REPLIES 2
Read only

Former Member
0 Likes
349

Hi Chris,

You can see the following code snippet.



  select single name 2
    from adrc
    into l_name2
  where name1 LIKE 'MAT%'.
  

Here the name 1 that starts with MAT.. will be fetched.

Regards,

Vimal.

Read only

Former Member
0 Likes
348

Chris,

You can directly write a select query like below.

select * from <tab>  into <itab> where <field> like 'MAN%'

Raj