Re: store key name pattern search
От | Oleg Bartunov |
---|---|
Тема | Re: store key name pattern search |
Дата | |
Msg-id | CAF4Au4zsGVNA+wrHEwJv+ihKZM_xNEAKkGCQd6dfmni=DVDsTA@mail.gmail.com обсуждение исходный текст |
Ответ на | store key name pattern search ("Armand Pirvu (home)" <armand.pirvu@gmail.com>) |
Ответы |
Re: store key name pattern search
|
Список | pgsql-general |
On Tue, Apr 4, 2017 at 11:41 AM, Armand Pirvu (home) <armand.pirvu@gmail.com> wrote:
Hi
I have the following case
select * from foo;
col1
------------------------------------------------------------ ---------------------
"show_id"=>"1", "group_id"=>"32", "group_name"=>"slb", "group_add_by"=>"557651"
"show_id"=>"2", "group_id"=>"33", "group_name"=>"slc", "item_add_by"=>"557652"
(2 rows)
Is there anyway I can do a pattern search by hstore key name something like
select * from foo where skeys(col1) like '%add_by%';
I looked on the doc but did not see anything , or did I miss it ?
Thanks
Armand
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
В списке pgsql-general по дате отправления: