Skip to main content
Solved

quote in InlineQuerier


endest
Contributor
Forum|alt.badge.img+1
Hi,

 

 

I want to query records of table A where the value of X contain value of Y in table B:

 

select * from A,B where X LIKE '%Y%'

 

It output nothing, I think the problem is the quote make Y into a normal string.

 

 

How to solve this?

 

 

Thanks

 

 

Best answer by takashi

Hi,

 

 

Characters within single quotes will be interpreted literally. I think this statement generates your intended result.

 

-----

 

select * from A,B where X like '%'||Y||'%'

 

-----

 

 

Takashi
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • Best Answer
  • July 16, 2015
Hi,

 

 

Characters within single quotes will be interpreted literally. I think this statement generates your intended result.

 

-----

 

select * from A,B where X like '%'||Y||'%'

 

-----

 

 

Takashi

endest
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • July 16, 2015
Hi,

 

 

Thank you, Takashi. It works.

 

 

I just find the search result of Knowledge Center is different from Communit Answers. I didn't find your last answer when I search with the toolbar of Knowledge Center.

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