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

Dynamic SQL Format 2 – PB Docs 2018 – PowerBuilder Library

Dynamic SQL Format 2 – PB Docs 2018

Dynamic SQL Format 2

Description

Use this format to execute a SQL statement that does not produce a
result set but does require input parameters. You can use this format to
execute all forms of Data Definition Language (DDL).

Syntax

Parameter

Description

DynamicStagingArea

The name of the DynamicStagingArea (usually
SQLSA).

If you need a DynamicStagingArea variable
other than SQLSA, you must declare it and instantiate it with
the CREATE statement before using it.

SQLStatement

A string containing a valid SQL statement. The
string can be a string constant or a PowerBuilder variable
preceded by a colon (such as :mysql). The string must be
contained on one line and cannot contain
expressions.

Enter a question mark (?) for each
parameter in the statement. Value substitution is positional;
reserved word substitution is not allowed.

TransactionObject (optional)

The name of the transaction object that identifies
the database.

ParameterList (optional)

A comma-separated list of PowerScript variables.
Note that PowerScript variables are preceded by a colon
(:).

Usage

To specify a null value, use the SetNull function.

Examples

These statements prepare a DELETE statement with one parameter in
SQLSA and then execute it using the value of the PowerScript variable
Emp_id_var:

These statements prepare an INSERT statement with three parameters
in SQLSA and then execute it using the value of the PowerScript
variables Dept_id_var, Dept_name_var, and Mgr_id_var (note that
Mgr_id_var is null):


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