Accessing tables with SQL commands
9.9
9
TNC 320 | User's Manual
HEIDENHAIN Conversational Programming | 3/2014
309
SQL UPDATE
SQL UPDATE
transfers the data prepared in the Q parameters into the
row of the result set addressed with
INDEX.
The existing row in the
result set is completely overwritten.
SQL UPDATE
takes into account all columns entered in the "Select"
command.
Parameter no. for result
: Q parameter, in which
the SQL server has reported the result:
0: No error occurred
1: Error occurred (incorrect handle, index too large,
value outside of value range or incorrect data
format)
Database: SQL access ID
: Q parameter with the
handle
for identifying the result set (also see
SQL
SELECT
).
Database: Index to SQL result
: Line number within
the result set. The table entries prepared in the Q
parameters are written to this row. If you do not
enter an index, the first row is written to (n=0).
Either enter the row number directly or program the
Q parameter containing the index
Row number is programmed directly
. . .
40 SQL UPDATEQ1 HANDLE Q5 INDEX5
SQL INSERT
SQL INSERT
generates a new row in the result set and transfers the
data prepared in the Q parameters into the new row.
SQL INSERT
takes into account all columns entered in the "Select"
command. Table columns not entered in the "Select" command are
filled with default values.
Parameter no. for result
: Q parameter, in which
the SQL server has reported the result:
0: No error occurred
1: Error occurred (incorrect handle, value outside of
value range or incorrect data format)
Database: SQL access ID
: Q parameter with the
handle
for identifying the result set (also see
SQL
SELECT
).
Row number is transferred in a Q
parameter
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"
. . .
40 SQL INSERTQ1 HANDLE Q5
Содержание TNC 320
Страница 4: ...Controls of the TNC 4 TNC 320 User s Manual HEIDENHAIN Conversational Programming 3 2014 ...
Страница 5: ...Fundamentals ...
Страница 16: ...Contents 16 TNC 320 User s Manual HEIDENHAIN Conversational Programming 3 2014 ...
Страница 43: ...1 First Steps with the TNC 320 ...
Страница 63: ...2 Introduction ...
Страница 81: ...3 Programming Fundamentals file management ...
Страница 124: ......
Страница 125: ...4 Programming Programming aids ...
Страница 152: ......
Страница 153: ...5 Programming Tools ...
Страница 180: ......
Страница 181: ...6 Programming Programming contours ...
Страница 232: ......
Страница 233: ...7 Programming Data transfer from DXF files or plain language contours ...
Страница 251: ...8 Programming Subprograms and program section repeats ...
Страница 267: ...9 Programming Q Parameters ...
Страница 337: ...10 Programming Miscellaneous functions ...
Страница 357: ...11 Programming Special functions ...
Страница 379: ...12 Programming Multiple Axis Machining ...
Страница 406: ......
Страница 407: ...13 Manual operation and setup ...
Страница 462: ......
Страница 463: ...14 Positioning with Manual Data Input ...
Страница 468: ......
Страница 469: ...15 Test run and program run ...
Страница 497: ...16 MOD functions ...
Страница 525: ...17 Tables and overviews ...