Sql Insert - HEIDENHAIN TNC 620 User Manual

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

Advertisement

Programming Q parameters | Accessing tables with SQL statements

SQL INSERT

SQL INSERT creates a new row in the result set. The values of
the individual cells are copied by the control from the bound Q
parameters. The transaction is defined via the HANDLE to be
specified.
SQL INSERT takes all of the columns into consideration that contain
the SELECT instruction (SQL command SQL EXECUTE). Table
columns without a corresponding SELECT instruction (not contained
in the query result) are described by the control with default values.
Example for the SQL INSERT command
Remarks:
The gray arrows and associated syntax do not directly belong to
the SQL INSERT command
Black arrows and associated syntax indicate internal processes of
SQL INSERT
Define Parameter number for result (return
values for the control):
0: Transaction successful
1: Transaction failed
Database: SQL access ID: Define Q parameter for
the HANDLE (for identifying the transaction)
When writing to tables, the control checks the lengths of
the string parameters. If the entries exceed the length of
the columns to be described, then the control outputs an
error message.
Example: Transfer row number in the Q parameter
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"
. . .
40 SQL INSERT Q1 HANDLE Q5
HEIDENHAIN | TNC 620 | Klartext Programming User's Manual | 01/2022
9
343

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 620 eTnc 620 programming station

Table of Contents