2
I select in diesem Beispiel zu sehen, aber wenn ich versuche, eine Abfrage wie dies zu tun:Wie füge ich zukünftige Zeitstempel in Postgres
INSERT INTO "public"."sessions"("account", "token_key", "timestamp", "timeout") VALUES('[email protected]', 'afasdfasdf', 'now()', 'now()' + (20 * interval '1 minute')) RETURNING "id", "account", "token_key", "timestamp", "timeout", "active", "keychain";
Ich bin nicht sicher, was zu tun ist. Kann keine Beispiele finden.
Ich kann Ihre Antwort in PostgreSQL 9.6.2 nicht reproduzieren. Es führt zu einem Syntaxfehler. Wird diese Antwort für Postgres 9.x immer noch als aktuell angesehen? – ajxs