--SAP HANA的索引都是保存在内存中。--创建索引:--语法:CREATE[UNIQUE][BTREE| CPBTREE]INDEX<index_name>ON<table_name>(<column_name_order>,...)[ASC|DESC]--创建测试表:createrowtable test_index (id INT,name nvarchar(10), remark nvarchar(10));createindex indextest1 on test_index(name);CREATE CPBTREE INDEX indextest2 ON test_index(id, name DESC);--创建唯一键索引:createuniqueindex indextest4 on test_index(id);createuniqueindex indextest3 on test_index(name,remark);--删除索引:DROP INDEX <index_name>dropindex indextest2;--删除索引indextest2--查询索引:select*from indexes where table_name ='EMP';--查询员工表中使用的索引select*from index_columns where table_name ='EMP';--查询索引列select*from m_rs_indexes where table_name ='EMP';--查询索引的统计信息(B-tree and CPB-tree)select*from fulltext_indexes where table_name ='EMP';--查询Fulltext 索引select*from m_fulltext_queues;--查看fulltext 索引队列的状态--修改索引名称RENAMEINDEX<old_index_name>TO<new_index_name>;