From: basti <mailinglist@unix-solution.de>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Move from MySQL to PostgreSQL
Date: Wed, 29 Mar 2023 14:57:13 +0200
Message-ID: <c925ef2b-59a3-7a80-0c05-c8a1f7cc806f@unix-solution.de> (raw)
Hello, I try to move from MySQL to PostgreSQL.
All seems to work expect of one query.
The query is part of https://github.com/volkszaehler/volkszaehler.orghttps://github.com/volkszaehler/volkszaehler.org/blob/master/lib/Util/Aggregation.php
There are several problems.
One of that ist the 'REPLACE INTO'.
An other problem is '@prev_timestamp := timestamp'
I have no idea how this can rewritten, so that MySQL and PostgreSQL can
understood that.
For DATE_FORMAT and UNIX_TIMESTAMP I have found wrapper functions.
Can someone please help me?
Best Regards,
Basti
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: mailinglist@unix-solution.de
Subject: Re: Move from MySQL to PostgreSQL
In-Reply-To: <c925ef2b-59a3-7a80-0c05-c8a1f7cc806f@unix-solution.de>
References: <c925ef2b-59a3-7a80-0c05-c8a1f7cc806f@unix-solution.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox