sql - Limit wildcard capture length postgreSQL -
Is there a way to limit the number of characters seen in a wildcard '%' operator? Say that I only want to select the record with the two events of the 'July' phrase, I will include "like" "July July July" in my query, but now I want to choose only that in July 2 Each has 40 characters other. Is there any way to do this in SQL?
How to use?
SELECT * MyTable where my column ~ ~ July. [0, 40} July '; (Note: Use ~ * instead of ~ to get insensitive case code.
Comments
Post a Comment