I want to retrieve data from Cosmos DB with the following query:
SELECT * FROM c WHERE c.pi like '09%001'
(This is a SQL query, which I can use in MySQL)
Here, pi
is a string value, which can be 09001001
or 09025001
.
Is there a way to use a LIKE
command in Cosmos DB?
I know that cosmos DB uses CONTAINS
, but this cannot be used when you want to match specifically the beginning or end of the string.