Zoomed Image

AMSX Scripting Language - Command : sqlstatement.addjoin

Summary

Add a JOIN clause to a SQL statement variable

Description

Appends a JOIN to the given SQL statement variable. The join type, table, and clause are required; the hint is optional.

Parameters

ParameterDescription
cmdSQL statement variable name
Argument 0join type (e.g. INNER, LEFT, LEFT OUTER)
Argument 1table name to join
Argument 2join condition (ON clause)
Argument 3join hint (optional, e.g. NOLOCK)

Syntax


SqlStatement.AddJoin "SQL statement variable name", "join type (e.g. INNER, LEFT, LEFT OUTER)", "table name to join", "join condition (ON clause)", "join hint (optional, e.g. NOLOCK)"

Return to the AMSX Command Reference