praktische Beispiel für Postgres regex substring oder regexp_matches

Ich habe versucht die folgende Abbildung für ein paar Tage. Bitte HELFEN Sie

PostgreSQL-Tabelle : Standorte

Id         State

--------------------
1          New York

2          Texas

input = 'Grüße aus Texas an alle Cowboys'

Ausgabe: Zeile mit Texas

SELECT id, state FROM locations WHERE state ~* substring(input from state)

InformationsquelleAutor Joey | 2010-08-04

Schreibe einen Kommentar