MySQL insert() and instr() equiv

Поиск
Список
Период
Сортировка
От Mark Constable
Тема MySQL insert() and instr() equiv
Дата
Msg-id 200606180206.28483.markc@renta.net
обсуждение исходный текст
Ответы Re: MySQL insert() and instr() equiv  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: MySQL insert() and instr() equiv  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-general
When using MySQL I have one select that uses MySQL functions so I am
wondering about the best way to go to end up with the same result in
PostgreSQL.

uid is an email address stored in the passwd table as user@domain.com
and this construct allows an incoming username such as "user.domain.com"
to be compared to the stored "user@domain.com".

SELECT wpath FROM passwd WHERE uid="\L" OR insert(uid,instr(uid,'@'),1,'.')="\L"

--markc

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

Предыдущее
От: "Greg Quinn"
Дата:
Сообщение: Question about openSSL
Следующее
От: Tom Lane
Дата:
Сообщение: Re: MySQL insert() and instr() equiv