Oracle 導出用戶下的所有索引創建語句


SELECT dbms_lob.substr(dbms_metadata.get_ddl('INDEX', INDEX_NAME))||';'
  from dba_indexes
 where owner='需要導出所有索引的用戶'

refer to:https://www.cnblogs.com/lhrbest/p/8820438.html

http://www.cnblogs.com/wlzhang/p/5035771.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM