Oracle SQL Developer
Oracle SQL Developer
Oracle SQL Developer
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Create Table (quick creation)Related TopicsDatabase Objects<strong>SQL</strong> <strong>Developer</strong> User InterfaceDialog Boxes for Creating/Editing Objects3.16 Create Table (quick creation)This dialog box (if you do not check Show Advanced Options) creates a new tablequickly by specifying columns and some frequently used features. (If you need to addor change features after you create the table, you can edit the table by clicking theModify icon while viewing the table or by right-clicking its name in the Connectionsnavigator and selecting Properties, which displays the Create/Edit Table (withadvanced options) dialog box.)To create a new table, the only things you must do are specify the schema and the tablename, add the necessary columns, and click OK. Although it is not required, youshould also specify a primary key.Show Advanced Options: If this option is checked, the dialog box changes to one withmultiple tabs, in which you can specify an extended set of features while creating thetable. For example, you must check this option if you want to create a partitionedtable, an index-organized table, or an external table.Schema: Database schema in which to create the table.Name: Name of the table. Must be unique within a schema.Columns tab (quick creation)Specifies properties for each column in the table.Columns: Lists the columns currently in the table.Note: To add a column after the currently selected column, click AddColumn; to delete a column, select it and click Remove Column.Column Name: Name of the column. Must be unique within the table. Suggestion: Fora new column, replace any default name, such as COLUMN1.Type: Data type for the column. The drop-down list includes only selected frequentlyused data types. To specify any other type for the column, you must use the Columnstab of the Create/Edit Table (with advanced options) dialog box.Size: For VARCHAR2 data, the maximum size of the column data; for NUMBER data,the maximum number of digits.Not Null: If this option is checked, the column must contain data; you cannot specifyno value or an explicit null value for this column when you insert a row. If this optionis not checked, the column can contain either data or no data.Primary Key: If this option is checked, the column is the primary key, or part of theprimary key, for the table. The primary key is the column, or set of columns, thatuniquely identifies each row in the table. A primary key column cannot be null.If you want to have the primary key values automatically populated by a convenientmethod that uses a before-insert trigger and a sequence, then before you finishcreating the table, you must check Show Advanced Options and use the Primary Keytab, starting with the Populate Primary Key Column field.3-8 <strong>SQL</strong> <strong>Developer</strong> Online Help