Re: SELECT in VCHAR column for strings with TAB - Mailing list pgsql-general

From Ray O'Donnell
Subject Re: SELECT in VCHAR column for strings with TAB
Date
Msg-id 741c9495-7026-f4cc-00fe-493b7b2fc08e@rodonnell.ie
Whole thread Raw
In response to SELECT in VCHAR column for strings with TAB  (Matthias Apitz <guru@unixarea.de>)
List pgsql-general
On 10/06/2021 14:30, Matthias Apitz wrote:
> 
> Hello,
> 
> I want to search in a VCHAR column for a string with two TAB at the end.
> I tried some things w/o any luck, like:
> 
> select * from acq_vardata where name=concat('Test202112', 9, 9);
> select * from acq_vardata where name=concat('Test202112', '\t\t');

Maybe use a regular expression?

https://www.postgresql.org/docs/13/functions-matching.html


Ray.

-- 
Raymond O'Donnell // Galway // Ireland
ray@rodonnell.ie



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: order by
Next
From: Tom Lane
Date:
Subject: Re: SELECT in VCHAR column for strings with TAB