支持标准的PostgreSQL创建和删除索引语句。
例如:
create index text_index1 on test(x) ;
创建一个用于TPC-C的ORDER表,并创建索引:
create FOREIGN table bmsql_oorder (
o_w_id integer not null,
o_d_id integer not null,
o_id integer not null,
o_c_id integer not null,
o_carrier_id integer,
o_ol_cnt integer,
o_all_local integer,
o_entry_d timestamp,
primarykey (o_w_id, o_d_id, o_id)
);
create index bmsql_oorder_index1 on bmsql_oorder(o_w_id, o_d_id, o_c_id, o_id) ;
说明: 在MOT名字之前不需要指定FOREIGN关键字,因为它仅用于创建和删除表的命令。
有关MOT索引限制,请参见“MOT SQL覆盖和限制”的索引部分内容。
官方文档地址:https://opengauss.org/zh/docs/1.1.0/docs/Developerguide/%E4%B8%BAMOT%E5%88%9B%E5%BB%BA%E7%B4%A2%E5%BC%95.html
最后修改时间:2021-05-14 14:50:04
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




