Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Postgres/contrib/btree_gin/sql/     Datei vom 11.4.2026 mit Größe 662 B image not shown  

SSL interval.sql   Sprache: SQL

 

set enable_seqscan=off;

CREATE TABLE test_interval (
 i interval
);

INSERT INTO test_interval VALUES
 ( '-178000000 years' ),
 ( '03:55:08' ),
 ( '04:55:08' ),
 ( '05:55:08' ),
 ( '08:55:08' ),
 ( '09:55:08' ),
 ( '10:55:08' ),
 ( '178000000 years' )
;

CREATE INDEX idx_interval ON test_interval USING gin (i);

SELECT * FROM test_interval WHERE i<'08:55:08'::interval ORDER BY i;
SELECT * FROM test_interval WHERE i<='08:55:08'::interval ORDER BY i;
SELECT * FROM test_interval WHERE i='08:55:08'::interval ORDER BY i;
SELECT * FROM test_interval WHERE i>='08:55:08'::interval ORDER BY i;
SELECT * FROM test_interval WHERE i>'08:55:08'::interval ORDER BY i;

Messung
CHZG
869510093

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland