HEIDENHAIN TNC 320 User Manual page 359

Compact contouring control
Hide thumbs Also See for TNC 320:
Table of Contents

Advertisement

SQL COMMIT
SQL COMMIT transfers all rows in the result set back to the table. A
lock set with SELECT...FOR UPDATE is canceled.
The handle given in the SQL SELECT command loses its validity.
Parameter no. for result: Q parameter in which the
SQL server reports the result:
0: No error
1: Error occurred (incorrect handle or same entryin
columns, in which unambiguous entries are
required)
Database: SQL access ID: Q parameter with the
handle
for identifying the result set
Further Information:
SQL ROLLBACK
How SQL ROLLBACK is executed depends on whether INDEX is
programmed:
If INDEX is not programmed: The result set is
the table (any changes/insertions are discarded). The transaction
is closed and the handle given in the SQL SELECT command loses
its validity. Typical application: Ending a transaction with read-
access only
If INDEX is programmed: The indexed row remains. All other rows
are deleted from the result set. The transaction is
A lock set with SELECT...FOR UPDATE remains for the indexed
row; for all other rows it is reset
Parameter no. for result: Q parameter in which the
SQL server reports the result:
0: No error
1: Error occurred (incorrect handle)
Database: SQL access ID: Q parameter with the
handle
for identifying the result set
Further Information:
Database: Index for SQL result: Row that is
to remain in the result set. Either enter the row
number directly or program the Q parameter
containing the index
HEIDENHAIN | TNC 320 | Conversational Programming User's Manual | 9/2016
Accessing tables with SQL commands
"SQL SELECT", page 355
not
written back to
not
concluded.
"SQL SELECT", page 355
11SQL BIND Q881
"TAB_EXAMPLE.MEAS_NO"
12SQL BIND Q882
"TAB_EXAMPLE.MEAS_X"
13SQL BIND Q883
"TAB_EXAMPLE.MEAS_Y"
14SQL BIND Q884
"TAB_EXAMPLE.MEAS_Z"
. . .
20SQL Q5 "SELECT
MEAS_NO,MEAS_X,MEAS_Y,
MEAS_Z FROM TAB_EXAMPLE"
. . .
30 SQL FETCH Q1HANDLE Q5 INDEX
+Q2
. . .
40 SQL UPDATEQ1 HANDLE Q5 INDEX
+Q2
. . .
50 SQL COMMITQ1 HANDLE Q5
11SQL BIND Q881
"TAB_EXAMPLE.MEAS_NO"
12SQL BIND Q882
"TAB_EXAMPLE.MEAS_X"
13SQL BIND Q883
"TAB_EXAMPLE.MEAS_Y"
14SQL BIND Q884
"TAB_EXAMPLE.MEAS_Z"
. . .
20SQL Q5 "SELECT
MEAS_NO,MEAS_X,MEAS_Y,
MEAS_Z FROM TAB_EXAMPLE"
. . .
30 SQL FETCH Q1HANDLE Q5 INDEX
+Q2
. . .
50 SQL ROLLBACKQ1 HANDLE Q5
9
9.9
359

Advertisement

Table of Contents
loading

Table of Contents