Download Print this page

HEIDENHAIN MANUALplus 620 Technical Manual page 1628

Hide thumbs Also See for MANUALplus 620:

Advertisement

FOR NOTIFICATION
SQL commands
SELECT
UPDATE
1628
The FOR NOTIFICATION option monitors the table for changes.
FOR NOTIFICATION provides the client with a result containing information on
the change.
Definition
lock-option := FOR UPDATE | FOR NOTIFICATION
In a SELECT statement a list of the columns to be selected and the table
preceded by the keyword FROM must be specified. In addition, it may contain
a condition with the keyword WHERE, a sorting sequence with the keyword
ORDER BY and a command for pessimistic locking with the keyword FOR
UPDATE.
Definition
select-list
:= '*' | column-list
select-option:= [ where-option ] [ order-option ] [ lock-option ]
select-statement := SELECT select-list FROM table select-option
Examples:
SELECT * FROM TOOL WHERE RT == 5 AND LOCK <> 1 ORDER BY TIME
SELECT TIME FROM TOOL WHERE NR==7 FOR UPDATE
SELECT L,R,R2 FROM 'OEM:\TOOL.T' WHERE NAME LIKE 'T1999'
In an UPDATE statement the table and the columns to be edited preceded by
the keyword SET must be specified. Furthermore, it may contain a condition
with the keyword WHERE. If the WHERE condition is not specified, all rows
are edited.
Definition
assignment := column '=' expression
update-list := assignment { ',' assignment }
update-option:= [ where-option ]
update-statement := UPDATE table SET update-list update-option
Examples:
UPDATE TOOL SET LOCK = 1 WHERE RT == 5 AND LOCK <> 1
UPDATE TOOL SET TIME = 0, LOCK = 0
UPDATE 'OEM:\TOOL.T' SET TIME = MAXTIME WHERE NAME LIKE 'T1999'
HEIDENHAIN Technical Manual MANUALplus 620

Advertisement

loading