sql - pratical example of Postgres regex substring or regexp_matches -
I am trying to figure out the following statistics for a few days. Please help
PostGraceal table: Location
State of ID -------------------- 1 New York 2 Texas
input = 'Wishes for all the cowboys from Texas'
Output: Line with Texas
SELECT id, from locations State from where state * (status input from state)
1
Select from * places where 'congratulate all cowboys from Texas' state;
2.
from select locations * where state = any (string_to_array ('greetings for all cowboys from Texas', ''));
There are two problems in both the ways in two ways. But I want to know if they are for you.
3.
Select from those places where access to all the cowboys from Texas' ~ * ('\\ m' || state || '\\ M');
The last method will be much better.
Comments
Post a Comment