EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R-R00CPU - Page 1001

Mitsubishi Electric MELSEC iQ-R-R00CPU
1028 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
APPX
Appendix 14 List of Available SQL Commands for CPU Module Database Access Function
999
A
UPDATE
This command updates the value of the specified record of the specified table in the database.
*1 When the field value is a character string, enclose it in single quotation marks (').
Option
Application example
To store a value in "fld1" and "fld3" of the record of "fld2" field value = 935 of table1 (storing fld1 = 20, fld3 = abc)
UPDATE table1 SET "fld1" = 20, "fld3" = 'abc' WHERE "fld2" = 935;
DELETE
This command deletes a record of the specified table in the database.
*1 When the field value is a character string, enclose it in single quotation marks (').
Option
Application example
To delete all records in table1
DELETE "table1";
To delete the record of the fld3 value = abc in table1
DELETE "table1" WHERE "fld3" = 'abc';
Syntax
*1
UPDATE [table name] SET [field name = assigned value], [field name = assigned value], , [field name = assigned value] [option];
Item Description Syntax
WHERE Specifies the condition to obtain (process) a specific record
( Page 1000 WHERE).
WHERE
Syntax
*1
DELETE [table name] [option];
Item Description Syntax
WHERE Specifies the condition to obtain (process) a specific record
( Page 1000 WHERE).
WHERE

Table of Contents

Related product manuals