i have a table and it has constraints and i want to get
"ALTER TABLE table_name
ADD CONSTRAINT constraint_name constraint type" this code
must be in string type
please help me
if you want, i can give more explainings

Answer Posted / ron

looks like you need to generate create / alter statements
from database data dictionary.

you need to run oracle package:
exec dbms_metadata.get_ddl(.....);

following the link for examples:

http://blogs.ittoolbox.com/database/solutions/archives/ddl-generationoracles-answer-to-save-you-time-and-money-7590

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is transport network substrate (tns) in oracle?

664


What is procedure overloading in oracle?

632


How to count groups returned with the group by clause in oracle?

666


what are archived logs?

1809


How to convert a date to char in oracle? Give one example.

675






How to loop through a cursor variable?

669


How would you go about verifying the network name that the local_listener is currently using?

1681


How to define a variable to match a table column data type?

648


Is oracle a relational database?

605


How to check the server version in oracle?

690


How to connect to a local oracle 10g xe server?

624


How to check your oracle database 10g xe installation?

667


How to define an anonymous procedure with variables?

626


What is snapshot is too old? Give and example for better understand.

1175


What is ADDM Advisor in Oracle?

757