操作符表 box_ops 和 bigbox_ops 都支持對(duì) box 數(shù)據(jù)類(lèi)型的 rtree 索引。兩者的區(qū)別是 bigbox_ops 把方形的坐標(biāo)按比例縮小,以避免在對(duì)非常大的浮點(diǎn)數(shù)坐標(biāo)做乘法,加法和減法時(shí)出現(xiàn)浮點(diǎn)例外。如果你的方形所在的范圍的大小是 20,000 單位的平面或更大,你應(yīng)該用 bigbox_ops。 int24_ops 操作符表在為 int2 類(lèi)型的數(shù)據(jù)構(gòu)建索引并且與查詢(xún)資格條件里的 int4 數(shù)據(jù)做比較時(shí)很有用。類(lèi)似的,int42_ops 支持對(duì)要和查詢(xún)里的 int2 數(shù)據(jù)做比較的 int4 數(shù)據(jù)進(jìn)行索引。 下面的查詢(xún)顯示所有定義了的操作符表: SELECT am.amname AS acc_name, opc.opcname AS ops_name, opr.oprname AS ops_comp FROM pg_am am, pg_amop amop, pg_opclass opc, pg_operator opr WHERE amop.amopid = am.oid AND amop.amopclaid = opc.oid AND amop.amopopr = opr.oid ORDER BY acc_name, ops_name, ops_comp
使用 DROP INDEX 刪除一個(gè)索引。 關(guān)鍵字 作者:由 Herouth Maoz 寫(xiě)作。這些最早出現(xiàn)在 1998-03-02 用戶(hù)郵件列表里關(guān)于"主鍵(PRIMARY KEY)和唯一約束(UNIQUE constraints)有什么異同"問(wèn)題的解答. Subject: Re: [QUESTIONS] PRIMARY KEY | UNIQUE
What's the difference between:(下面兩者有何區(qū)別?)
PRIMARY KEY(fields,...) and UNIQUE (fields,...)
- Is this an alias?(這是別名嗎?) - If PRIMARY KEY is already unique, then why(如果 PRIMARY KEY 已經(jīng)唯一,) is there another kind of key named UNIQUE?(那么為什么有另外一個(gè)名為 UNIQUE 類(lèi)型的鍵字?)