OrientDB – Truncate Record Truncate Record command is used to delete the values of a particular record. The following statement is the basic syntax of the Truncate command. TRUNCATE RECORD <rid>* Where <rid>* indicates the Record ID to truncate. You can use multiple Rids separated by comma to truncate multiple records. It returns the number […]
Category Archives: orientdb
OrientDB – Update Record Update Record command is used to modify the value of a particular record. SET is the basic command to update a particular field value. The following statement is the basic syntax of the Update command. UPDATE <class>|cluster:<cluster>|<recordID> [SET|INCREMENT|ADD|REMOVE|PUT <field-name> = <field-value>[,]*] |[CONTENT| MERGE <JSON>] [UPSERT] [RETURN <returning> [<returning-expression>]] [WHERE <conditions>] [LOCK […]
OrientDB – Delete Record Delete Record command is used to delete one or more records completely from the database. The following statement is the basic syntax of the Delete command. DELETE FROM <Class>|cluster:<cluster>|index:<index> [LOCK <default|record>] [RETURN <returning>] [WHERE <Condition>*] [LIMIT <MaxRecords>] [TIMEOUT <timeout>] Following are the details about the options in the above syntax. LOCK […]