Home >> FAQs/Tutorials >> Oracle Tutorials

Oracle Tutorials - Retrieve CREATE TABLE Statement with SQL Developer

By: FYIcenter.com

(Continued from previous topic...)

How To Get a CREATE Statement for an Existing Table?

You have an existing table and want to get a CREATE statement for that table, you can use the SQL tab in the object view. The following tutorial steps show you how to use SQL Developer to generate a CREATE statement on an existing table:

  • Double-click the table name JOBS in the object tree area.
  • Click the SQL tab in the object view area.

In a moment, you will get the following CREATE statements:

REM HR JOBS

  CREATE TABLE "HR"."JOBS" 
   (	"ID" VARCHAR2(10 BYTE), 
	"TITLE" VARCHAR2(35 BYTE) CONSTRAINT "TITLE_NN" 
		NOT NULL ENABLE, 
	"MIN_SALARY" NUMBER(6,0), 
	"MAX_SALARY" NUMBER(6,0), 
	 CONSTRAINT "ID_PK" PRIMARY KEY ("ID") ENABLE
   ) ;
 
REM HR ID_PK

  CREATE UNIQUE INDEX "HR"."ID_PK" ON "HR"."JOBS" ("ID") 
  ;

(Continued on next topic...)

  1. What Is Oracle SQL Developer?
  2. What Operating Systems Are Supported by Oracle SQL Developer?
  3. How To Download Oracle SQL Developer?
  4. How To Install Oracle SQL Developer?
  5. How To Start Oracle SQL Developer?
  6. Is Oracel SQL Developer written in Java?
  7. How To Connect to a Local Oracle 10g XE Server?
  8. How To Connect to a Remote Server?
  9. How To Run SQL Statements with Oracle SQL Developer?
  10. How To Export Your Connection Information to a File?
  11. How To Run SQL*Plus Commands in SQL Developer?
  12. How To Work with Data Objects Interactively?
  13. How To Get a CREATE Statement for an Existing Table?
  14. How To Create a Table Interactively?
  15. How To Enter a New Row into a Table Interactively?
  16. What Is the Reports View in Oracle SQL Developer?
  17. How To Get a List of All Tables in the Database?
  18. How To Get a List of All User Accounts in the Database?
  19. How To Get a List of All Background Sessions in the Database?
  20. How To Create Your Own Reports in SQL Developer?
  21. How Many File Formats Are Supported to Export Data?
  22. How To Export Data to a CSV File?
  23. How To Export Data to an XML File?
  24. How To Create a Procedure Interactively?
  25. How To Run a Stored Procedure Interactively?
  26. How To Run Stored Procedures in Debug Mode?
  27. How To Assign Debug Privileges to a User?
  28. How To Set Up Breakpoints in Debug Mode?
  29. What Do You Think about Oracle SQL Developer?

Oracle Tutorials:

More...


Other Tutorials/FAQs:

More...


Related Resources:

More...


Selected Jobs:

More...