SAP Knowledge Base Article - Preview

3378710 - CONTAINS() Query Syntax and Fuzzy Search Option for Asterisk '*'


If there is some special characters like asterisks "*" included in search term in "contains ()" clause, you might get unexpected result.  

For example : 

select mandt, spras,maktg,score() as score

FROM test_makt

WHERE mandt = '300'


AND contains( maktg ,'mytest 9*9*', fuzzy(0) )

ORDER BY score desc;

You expected there should be some data rows in the result set, but the returned result set is actually empty.

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.



  • SAP HANA, platform edition 1.0
  • SAP HANA, platform edition 2.0


SAP HANA 1.0, platform edition ; SAP HANA, platform edition 2.0


Asterisk '*', searchMode=alphanum, Fuzzy Search Option for Asterisk, Search Term, Alphanumeric Search, Search Mode 'alphanum' and Wildcards, Search Mode "alphanum", alphanum , KBA , HAN-DB , SAP HANA Database , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.