Well, this question is 6 years old, but the screenshot below shows an easy way to do what you want. I hope you did not wait.;)
Right-click the table you are interested in and select Scripts β Create TableScript .

When you select this menu item, you will get a window containing SQL, for example.
CREATE TABLE "JOOMP"."METRICLEVELS" ( LEVELID int NOT NULL, LEVELNAME varchar(30) NOT NULL ) ;
If you also want SQL to populate the table with existing data, use Scripts Create Data Script . In this example, you will get:
INSERT INTO "JOOMP"."METRICLEVELS" (LEVELID,LEVELNAME) VALUES (2,'Project'); INSERT INTO "JOOMP"."METRICLEVELS" (LEVELID,LEVELNAME) VALUES (3,'Package Fragment Root'); INSERT INTO "JOOMP"."METRICLEVELS" (LEVELID,LEVELNAME) VALUES (4,'Package Fragment'); INSERT INTO "JOOMP"."METRICLEVELS" (LEVELID,LEVELNAME) VALUES (5,'Compilation Unit'); INSERT INTO "JOOMP"."METRICLEVELS" (LEVELID,LEVELNAME) VALUES (7,'Type'); INSERT INTO "JOOMP"."METRICLEVELS" (LEVELID,LEVELNAME) VALUES (9,'Method');
kc2001
source share