- This topic has 7 replies, 5 voices, and was last updated 18 years, 8 months ago by
Haris Peco.
-
AuthorPosts
-
cmikosMemberHow do you generate DDL for more than one table at a time?
October 4, 2006 at 12:59 pm #259847
Brian FernandesModeratorcmikos,
I’m afraid that isn’t possible right now. I’ll file this as an enhancement request. Would you expect all the DDL generated in a single file or several files, one for each entity?
Brian.
October 4, 2006 at 1:35 pm #259850
cmikosMemberHi Brian,
I had another question before you read my reply…What is the difference between “Generate DDL” and “Generate DDL(Advanced)”?
Thanks for the reply…I was afraid I was going insane trying to find the functionality, so it’s good that it isn’t possible.
Ultimately, it would be really useful to have several options…the main reason for this functionality, is that it is nice to package DDL scripts
with an application.It would be great to be able to generate DDL for all tables in one file with or without constraints and then have separate files for different types of objects i.e. sequences, views, procedures etc…
For a good example of a program with a myriad of useful options check out DDL Wizard:
This program allows you to generate DDL scripts from an Oracle export file XXX.dmp
Anyways, it would just be nice to be able to do this from MyEclipse due to the fact that I am using it for so many other things!
Cheers!
October 4, 2006 at 4:41 pm #259879
Haris PecoMembercmikos,
Generate DDL (advanced) use oracle’s packages and works only for oracle >= version 9
Generate DDL is our internal generator and works for some jdbc-compliant database.Best
PecoOctober 15, 2006 at 8:54 am #260429
Stephen CooperMemberTwo feature requests for this:
1) ability to generate ddl only for what’s new/changed (perhaps query a live DB to find out existing state)
2) use the comments in the <meta> tags to apply comments to columns and tables.October 15, 2006 at 10:30 am #260431
Haris PecoMemberSCooper4711,
1) ability to generate ddl only for what’s new/changed (perhaps query a live DB to find out existing state)
I don’t understand what means ‘ what’s new/changed?’. We can find out existing state, but no previous state (except for some
databases)2) use the comments in the <meta> tags to apply comments to columns and tables.
DDL generator will generate standard sql ‘comment on …’ commands if tables/columns have comment (you can add table/column comments in table wizard or from sql editor)
Best
PecoOctober 31, 2006 at 4:11 pm #261153
thepigsMemberWhen adding the multiple table DDL feature, could I suggest you add an option to generate DDL with the CREATE TABLE statements in dependency order. ie. examine foreign key constraints and create dependent tables first.
Thanks.
October 31, 2006 at 5:26 pm #261161
Haris PecoMemberthepigs ,
There is simple solution for this problem in general.
– generate CREATE TABLE with primary key first and aftre this constraintsOtherwise, it is not easy problem, because table can have FK to itself.
Regards,
-
AuthorPosts