,我的查詢是 select id from table1 where date1 >= eDate1 and date1 <= eDate2 and zId = 256
and id no in
(select id from table1 where date1 < eDate1 and zId = 256)
MonetDB。 有沒有更好的方法,我試圖簡單地排除在所選日期範圍之前在區域中
我有兩個MonetDB表使用自動增量來爲每一行生成唯一的ID。在孩子表的每一行指的是一個排的父表(造型1:N的關係): CREATE SEQUENCE "test"."seq_parent" as integer START WITH 1;
CREATE TABLE "test"."parent" (
"id" INT NOT NULL DEFAULT next value for "
我安裝了MonetDB並導入了一個(未壓縮的)291 GB TSV MySQL轉儲。它像一個魅力,數據庫非常快,但數據庫需要在磁盤上超過542 GB。 It seems like MonetDB is also able to use compression,但我無法知道如何啓用(或強制)它。我該怎麼做?我不知道它是否真的加快了執行速度,但我想嘗試一下。
在MonetDB中工作時,我有一個包含時間值的'entrytime'列。我有: select "minute"(entrytime) as unitTime, period
from schema1.zones
where date1 >= eDate and date1 <= xDate and id=256
group by unitTime, period