怎么删除索引啊?高分相送!在线等候!
请问各位高手们,我现在想在oracle数据库下操作一张表。先用pl/sql developer建立一个存储过程,然后我想在向一张空表中插入数据前(有三千多万条记录),先删除这张表的索引,最后,在插入操作完成后,再重新建立新的索引。但是不知道,在pl/sql developer中用什么语句来删除索引呢?
我用drop index pri_user_id_arrear;语句(pri_user_id_arrear是索引名),却告诉我错误,错误提示是:encountered the symbol 'drop' when expecting one of the following : begin case declare end exception exit for goto if loop mod null pragama raise return select update while with....
后面的还有,但太长了,在屏幕上无法显示,请问各位这到底是怎么回事啊!
上面那个drop语句我在sql窗口下可以执行,能够删除索引,但一到存储过程中,就有很多语句不支持了,就像truncate语句一样,在sql窗口能行,在procedure中就不行,只好改用delete语句了。但索引却不能用delete删除啊!还有创建语句create unique index,也是不能用!
请帮忙!一定给分!