agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Ertan Küçükoðlu <ertan.kucukoglu@1nar.com.tr>
To: pgsql-sql@lists.postgresql.org
Subject: Converting from MySQL
Date: Wed, 23 Jan 2019 00:21:03 +0300
Message-ID: <000101d4b298$61f471d0$25dd5570$@1nar.com.tr> (raw)
Hello,
I am trying to install a mail server using PostgreSQL on a Debian 9 Stretch.
Document I am following is for MySQL. I converted other simple SQL commands.
Failed to find PostgreSQL equivalent for below one because I did not
understand what it does in the first place.
SELECT
CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/')
FROM users WHERE email='%s'
Any help is appreciated.
Thanks & regards,
Ertan Küçükoðlu
view thread (3+ messages) latest in thread
Message-ID: <000101d4b298$61f471d0$25dd5570$@1nar.com.tr>
Permalink: ../000101d4b298$61f471d0$25dd5570$@1nar.com.tr/
Also on: postgresql.org/message-id/000101d4b298$61f471d0$25dd5570$@1nar.com.tr
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: ertan.kucukoglu@1nar.com.tr, pgsql-sql@lists.postgresql.org
Subject: Re: Converting from MySQL
In-Reply-To: <000101d4b298$61f471d0$25dd5570$@1nar.com.tr>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox