软件下载吧文章资讯

分类分类

PostgreSQL教程(八):索引详解

2024-02-28 13:28作者:下载吧

一、索引的类型:

    PostgreSQL提供了多  种索引类型:B-Tree、Hash、GiST和GIN,由于它们使用了不同的算法,因此每种索引类型都有其适合的查询类型,缺省时,CREATE INDEX命令将创建B-Tree索引。
   
    1. B-Tree:
 

    CREATE TABLE test1 (
        id integer,
        content varchar
    );
    CREATE INDEX test1_id_index ON test1 (id);
 
展开全部

相关文章

说两句网友评论
    我要跟贴
    取消