Skip to main content
Solved

How to use LIKE query in FeatureReader on a PostGIS database.

  • December 15, 2020
  • 2 replies
  • 150 views

bubblebeb
Contributor
Forum|alt.badge.img+6

I am wanting to search a PostGIS database using a Contains or Like query to search strings for a partial match.

My last attempt is proprietor_1 LIKE '@Value(Name)'

I also tried CONTAINS(proprietor_1, '@Value(Name)')

 

proprietor_1 is in my PostGIS

Name is in my routine

 

Any assistance with queries would be great.

Best answer by david_r

Unless you already have the "%" wildcard character the attribute, you probably want to do as follows for the partial match:

proprietor_1 LIKE '%@Value(Name)%'

 

View original
Did this help you find an answer to your question?

2 replies

david_r
Celebrity
  • Best Answer
  • December 15, 2020

Unless you already have the "%" wildcard character the attribute, you probably want to do as follows for the partial match:

proprietor_1 LIKE '%@Value(Name)%'

 


caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • December 15, 2020

Use:

"proprietor_1" like '@Value(Name)'

Also, read this article on Performing spatial queries on database tables Performing spatial queries on database tables using the FeatureReader (safe.com)


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings