日期:2014-05-16  浏览次数:20738 次

oracle建立索引问题
最近部署一个java项目,从官方下的sql文件,直接执行的时候提示确实确实左括号,在sqlplus里手敲还是同样的提示,请问下面的语句哪里有错?
CREATE INDEX i_audit_log_event_audit_table ON audit_log_event USING btree (audit_table);
CREATE INDEX i_audit_log_event_user_id ON audit_log_event USING btree (user_id);
CREATE INDEX i_audit_log_event_entity_id ON audit_log_event USING btree (entity_id);
CREATE INDEX i_audit_log_event_audit_log_event_type_id ON audit_log_event USING btree (audit_log_event_type_id);
CREATE INDEX i_audit_log_event_event_crf_id ON audit_log_event USING btree (event_crf_id);
CREATE INDEX i_audit_log_event_study_event_id ON audit_log_event USING btree (study_event_id);
CREATE INDEX i_audit_log_event_event_crf_version_id ON audit_log_event USING btree (event_crf_version_id);
CREATE INDEX i_null_value_type_code ON null_value_type USING btree (code);
CREATE INDEX i_rule_oc_oid ON rule USING btree (oc_oid);
CREATE INDEX i_rule_rule_expression_id ON rule USING btree (rule_expression_id);
索引 btree

------解决方案--------------------
USING btree 
我没见过这个语法,建b-tree索引直接CREATE INDEX i_audit_log_event_audit_table ON audit_log_event(audit_table);