Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Query language and DCS > LIKE filters same as equal sign

Forum

Search UsersRules
LIKE filters same as equal sign
#1
Active user
Points:: 0
Joined:: Sep 27, 2011

Hello!
I have the following problem: I need to filter items in my catalog by a part of Description. I use LIKE clause but it maches entire the string like equal sign does! Here is my query text:

Code
SEL ECT Items.Ref
FR OM Catalog.Items AS Items
WHERE Items.Description LIKE &DescriptionPart

Profile
#2
Just came
Points:: 10
Joined:: Apr 17, 2012

Hello.
Try it like that

Code
SetParameter("DescriptionPart","%"+DescriptionPart+"%")

Profile
#3
Active user
Points:: 0
Joined:: Sep 27, 2011

Perfect! Thanks!

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.