PostgreSQL equivelant of this MySQL query

Поиск
Список
Период
Сортировка
От Madison Kelly
Тема PostgreSQL equivelant of this MySQL query
Дата
Msg-id 46982953.7030804@alteeve.com
обсуждение исходный текст
Ответы Re: PostgreSQL equivelant of this MySQL query  (Madison Kelly <linux@alteeve.com>)
Re: PostgreSQL equivelant of this MySQL query  (Steve Atkins <steve@blighty.com>)
Re: PostgreSQL equivelant of this MySQL query  (paddy carroll <paddy.carroll@gmail.com>)
Список pgsql-general
Hi all,

   I am reading through some docs on switching to Postfix with a SQL
backend. The docs use MySQL but I want to use PgSQL so I am trying to
adapt as I go. I am stuck though; can anyone help give me the PgSQL
equiv. of:

SELECT
CONCAT(SUBSTRING_INDEX(usr_email,'@',-1),'/',SUBSTRING_INDEX(usr_email,'@',1),'/')
FROM users WHERE usr_id=1;

   If the 'usr_email' value is 'person@domain.com' this should return
'domain.com/person'.

   Thanks for the help!

Madison

В списке pgsql-general по дате отправления:

Предыдущее
От: Michael Glaesemann
Дата:
Сообщение: Re: pg_dump vs schemas
Следующее
От: Madison Kelly
Дата:
Сообщение: Re: PostgreSQL equivelant of this MySQL query