Skip to main content

Questions tagged [pattern-matching]

0 votes
1 answer
15 views

I'm trying to do a schema-only pg_dump of my database, however with data from one or two specific tables included. This means I can't use the --schema-only or --data-only options of pg_dump, and I can'...
Bergi's user avatar
  • 604
0 votes
1 answer
72 views

How do you pattern match using cte? id accountids email a12 456,789,012 [email protected] b23 546,982,123 [email protected] c45 654,982,456 [email protected] I've tried following: with cte1 as ( select '''' || '{'...
obautista's user avatar
  • 437
0 votes
1 answer
1k views

I have a column which will have values like: FC FCW FC,FCW FX,FC My input used for filtering should give correct result (match the exact value in the column) ex: FC like 'FC,FCW' --> true FC like '...
Ross's user avatar
  • 1
0 votes
1 answer
6k views

I have a table jsondocs with the following columns: id SERIAL json TEXT I want to check if the columns json contains some values but not exact match. For example I can to do something like: select * ...
Dimitrios Desyllas's user avatar
0 votes
1 answer
669 views

I am trying to set up a search function on my web site. I have a table called projects with the following content: +----+--------+------------------------------------------------------------+----------...
Warriorjacq9's user avatar
-2 votes
1 answer
2k views

I want to store only US and Canada phone numbers in a Postgres TEXT column. I don't want to use pg_libphonenumber. What CHECK constraints should I be using for this purpose?
yayaur's user avatar
  • 13
0 votes
1 answer
746 views

I have a table, products, with a product_id column as follows: product_id 110177 110177T 177 I am trying to filter down the product results that should fetch result as below but it is also fetching ...
Slimshadddyyy's user avatar
0 votes
1 answer
3k views

I have the following query that I did hard looking on this site: SELECT * FROM renns WHERE ( to_tsvector('english', coalesce(numar_admin, '')) || to_tsvector('english', coalesce(...
CoderCoder42's user avatar

15 30 50 per page
1
2 3 4 5
7