Dans le tableau events
ci-dessous, comment sélectionner events
créé il y a moins de 15 minutes?
CREATE TABLE events (
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
);
SELECT created_at FROM events WHERE created_at > NOW() - INTERVAL '15 minutes';
SELECT * FROM events WHERE age(now(), created_at) < '15 minutes';