Oracle sql developer - export DDL - only create table sql
问题 I want to run unit tests by generating all tables in HSQLDB, present in my oracle database. For that I want to export all DDL create table statements from oracle tables. I tried export database, but along with create table sql I am getting lot other SQLs like, " PARTITION BY RANGE ("CREATION_DATE") " etc. How do I export all oracle tables(schema) to HSQLDB? is there any better way? 回答1: You can use the DBMS_METADATA.GET_DDL() function to get the table definition, and modify what is included