INSERT – PB Docs 2021

INSERT

SQL statement

Description

Inserts one or more new rows into the table specified in
RestOfInsertStatement.

Syntax

Parameter

Description

RestOfInsertStatement

The rest of the INSERT statement (the INTO clause,
list of columns and values or source).

TransactionObject

The name of the transaction object that identifies
the database containing the table. This clause is required only
for transaction objects other than the default
(SQLCA).

Usage

Error handling

It is good practice to test the success/failure code after
executing an INSERT statement.

Examples

Example 1

These statements insert a row with the values in EmpNbr and
EmpName into the Emp_nbr and Emp_name columns of the Employee table
identified in the default transaction object:

Example 2

These statements insert a row with the values entered in the
SingleLineEdits sle_number and sle_name into the Emp_nbr and
Emp_name columns of the Employee table in the transaction object named
Emp_tran:


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