Saturday, June 15, 2013

How to add Sequence Generator to a table in Oracle SQL Developer Data Modeler

Nowadays, most of the database design will use a running sequence number as the table's Primary Key instead of a code column, especially for compound key to reduce the complexity to reference to the table.

Thus, this post will show how to define a Sequence Generator for a table in Oracle SQL Developer Data Modeler.

Assumed that a table already created, with a number type column as the PK shown below.
table with PK is number type

1. Open the Table Properties
    a) R-click on the table > properties OR d-click on the table
    b) Click on Columns node.
table properties

2. Open the Column Properties for the PK
    a) d-click on selected column
column properties for PK

2. Configure for auto increment and sequence generator.
    a) in General node, check Auto Increment
    b) in Auto Increment node, enter Sequence Name
    c) click OK



  1. Hello . I don't seem to find out the dialogs you have mentioned .

    I am using version Build MAIN-09.87 of sql developer

    Appreciate your help

    1. Hi Melvin,
      I guess you are not using Oracle SQL Developer Data Modeler.
      It is different software from Oracle.
      Please refer here for more details about Oracle SQL Developer Data Modeler.

  2. Just what I was looking for. Thanks

  3. In 2000, two children swimming behind a family houseboat on Utah's Lake Powell drowned after losing consciousness when a portable generator beneath a swim deck produced dangerous fumes. Once again, poorly planned placement of a consumer-use generator was cited as the primary cause of the tragedy.visit



Related Posts Plugin for WordPress, Blogger...