0

example

const testString = "bmw,honda,mercedes,audi"

const testArray = ['renault', 'mini', 'honda', 'dacia']

how to check if at least on element from testString exist on testArray

tried string_to_array()

1 Answer 1

0

There's no SQL in the question; however, if testString and testArray are of types text and array of text, respectively, then string_to_array(testString, ',') && testArray achieve the desired result.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.