let me thank all the masters who have been sharing their knowledge and guiding the novice. Coming to the Question,
I have three tables at my backend
1) containing Table name, owner, schema(to me, its namespace) and other info
2) containing field name, table id, and other details like datatype, allow nulls etc.,
3) containing the relation name, field ids which are related
Now I need to create a generic SQLDBscript using the above 3 tables.
which should create DBscript for all the namespaces I defined in the above tables.
I hope I would get the more generic solution for my issue.