Export the table structure in Oracle to word

Source: Internet
Author: User

Export the table structure in Oracle to word. When exporting the table structure in Oracle to word, you need to use the database-developed table structure when writing the development document. You have found an SQL statement on the Internet, the test shows that it fully meets my needs and does not dare to be exclusive. The statement is AS follows: www.2cto.com select * from (SELECT t1.Table _ Name AS "table Name", t3.comments AS "table description ", t1.Column _ Name AS "field Name", t1.Data _ Type AS "Data Type", t1.Data _ Length AS "Length", t1.NullAble AS "empty ", t2.Comments AS "field description", t1.Data _ Default "Default Value" FROM cols t1 left join user_col_comments t2on t1.Table _ name = t2.Table _ name and t1.Column _ N Ame = t2.Column _ Nameleft join user_tab_comments t3 on t1.Table _ name = t3.Table _ name where not exists (SELECT t4.Object _ Name FROM User_objects t4WHERE t4.Object _ Type = 'table' AND t4.Temporary = 'y' AND t4.Object _ Name = t1.Table _ Name) order by t1.Table _ Name, t1.Column _ ID) k where k. "Table Name" = 'lbsp _ EC_REMAPP '; after the query is complete, export the htm format and copy and paste it to word!

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.