--这是函数索引,但是要创建函数索引必须有GOLBAL QUERY REWRITE 和 CREATE ANY INDEX的权限,否则不能创建函数索引SQL> grant global query rewrite to 用户;
SQL> grant create any index to 用户;SQL> create index idx_name on tablename (substr(字段名,m,n))