Constant and Variables
1 Constant¶
Constants used in the SQL statement will be collected and saved in a pseudo table: constantTable
.
Each SQL statement will create a constantTable
table to save the constants used in the SQL statement.
So SQLFlow able to generate the data flow to trace the constant value.
Constants only will be collected when the /showConstant is set to true in the SQLFlow. and constants used in the insert statement WILL NOT BE collected in order to avoid too many constants even if the /showConstant is set to true.
By default, the /showConstant is set to false in the SQLFlow which means constants will not be collected.
1 |
|
a table
XML tag and type attribute value constantTable
:
1 2 3 4 |
|
1 2 |
|
a table
XML tag and type attribute value constantTable
:
1 2 3 4 |
|
2 Variables¶
SQLFlow able to generate the data flow to trace the variable value which usually used in the stored procedure and return value. Without the trace of the variable, the data flow is not complete.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|
As you can see, with the trace of the variable, the data flow from Production.ProductInventory.Quantity
to the v_product.CurrentSupply
is complete.
The data lineage in xml format is as follows:
1 2 3 |
|