Oracle Export table with table statement stitching SQL

Source: Internet
Author: User
Tags one table

Some time ago there is a need to export the database of 500 table structure, using the Plsqldev tool can also export the build table statements, but need to manually a table one table, very laborious. I wrote a splice of SQL.

Select ' Select Dbms_metadata.get_ddl (' | | segment_type| | "", "" | | segment_name| | "", "" | | Owner | | From dual, ' from dba_segments where segment_name= ' Ale_criticaldegree '
or Segment_name=trim (' Ale_criticaldegree ')
or Segment_name=trim (' Ale_alertlevel ')
.................

or Segment_name=trim (' Pub_spellmodel ');

Oracle Export table with table statement stitching SQL

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.