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

SELECT – PB Docs 2019 – PowerBuilder Library

SELECT – PB Docs 2019

SELECT

SQL statement

Description

Selects a row in the tables specified in
RestOfSelectStatement.

Syntax

Parameter

Description

RestOfSelectStatement

The rest of the SELECT statement (the column list
INTO, FROM, WHERE, and other clauses).

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

An error occurs if the SELECT statement returns more than one
row.

Error handling

It is good practice to test the success/failure code after
executing a SELECT statement. You can test SQLCode for a failure
code.

When you use the INTO clause, PowerBuilder does not verify whether
the datatype of the retrieved column matches the datatype of the host
variable; it only checks for the existence of the columns and tables.
You are responsible for checking that the datatypes match. Keep in mind
that not all database datatypes are the same as PowerBuilder
datatypes.

Examples

The following statements select data in the Emp_LName and
Emp_FName columns of a row in the Employee table and put the data into
the SingleLineEdits sle_LName and sle_FName (the transaction object
Emp_tran is used):


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