Sql Commit - HEIDENHAIN TNC 620 User Manual

Klartext programming
Hide thumbs Also See for TNC 620:
Table of Contents

Advertisement

9

SQL COMMIT

SQL COMMIT simultaneously transfers all of the rows that have
been changed and added in a transaction back into the table. The
transaction is defined via the HANDLE to be specified. In this context,
a lock that has been set with SELECT...FOR UPDATE resets the
control.
The assigned HANDLE (operation) loses its validity.
Example for the SQL COMMIT command
Remarks:
The gray arrows and associated syntax do not directly belong to
the SQL COMMIT command
Black arrows and associated syntax indicate internal processes of
SQL COMMIT
Define Parameter number for result (return
values for the control):
Database: SQL access ID: Define Q parameter for
the HANDLE (for identifying the transaction)
Example
11 SQL BIND Q881 "Tab_Example.Position_Nr"
12 SQL BIND Q882 "Tab_Example.Measure_X"
13 SQL BIND Q883 "Tab_Example.Measure_Y"
14 SQL BIND Q884 "Tab_Example.Measure_Z"
. . .
20 SQL Q5 "SELECT Position_Nr,Measure_X,Measure_Y,
Measure_Z FROM Tab_Example"
. . .
30 SQL FETCH Q1 HANDLE Q5 INDEX+Q2
. . .
40 SQL UPDATE Q1 HANDLE Q5 INDEX+Q2
. . .
50 SQL COMMIT Q1 HANDLE Q5
344
0: Transaction successful
1: Transaction failed
Programming Q parameters | Accessing tables with SQL statements
HEIDENHAIN | TNC 620 | Klartext Programming User's Manual | 01/2022

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 620 eTnc 620 programming station

Table of Contents