Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Support for identity column – PB Docs 2022 – PowerBuilder Library

Support for identity column – PB Docs 2022

Support for identity column

The ORA driver supports the Identity columns for the Oracle
database:

  • When a DataWindow object is created, the Identity column is
    automatically set (read from the database). You can modify the
    Identity column in the Specify Update Properties.

  • When inserting rows with an Identity column, the Identity column
    is excluded from the INSERT statement. Its value is generated based on
    the GENERATED BY DEFAULT.

  • After a new row is inserted, the value of the Identity column in
    the row will show after the Update.

    Note: The DataWindow
    automatically gets the biggest value for the Identity column in the
    newly-added row after the Update. Therefore if the Identity column
    auto-increments by a negative number (which is supported by Ora Oracle
    and ADO.NET, but not by ODBC), the value shown for the newly-added row
    may be incorrect. You can execute a Retrieve on the DataWindow to get
    the correct value.

  • You can directly add auto incremental columns for Oracle tables
    in the IDE database painter, by setting the data type of the columns
    to either NUMBER IDENTITY or FLOAT IDENTITY. The clause would
    be:


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x