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 auto-increment column – PB Docs 2021 – PowerBuilder Library

Support for auto-increment column – PB Docs 2021

Support for auto-increment column

PostgreSQL supports the auto-increment column with the following
two methods:

  • Method 1: GetIdentity=’Select
    currval(”GEN_&TableName”)’

  • Method 2: GetIdentity=’Select
    currval(”&TableName._&ColumnName._seq’)’

    Method 2 uses the serial to create the auto-increment
    column.

These methods require that the sequence name follows the name
conversions specified by GetIdentity in pbodb.ini, for example,
gen_TableName,
TableName_ColumnName_seq. If
the sequence name is not in the required format, the identity value
cannot be obtained automatically.

These methods also require that the DelimitIdentifier property
(“Enclose Table and Column Names in Quotes” option) set to NO. If it is
set to YES, the identity value cannot be returned.


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