Documentation   >   Network database   >   Network Query Language - Data modification
 
Overview
Manipulation
Modification
NQL Extension
Java Client


INSERT
INSERT looks like:
INSERT (property1='value1' property2='value2' ...)  
For example:
INSERT (first_name='John' last_name='Smith' age='33')  

UPDATE
UPDATE pseudo code is:
UPDATE 
  (SET 
       (PROPERTY1 = VALUE1 PROPERTY2 = VALUE2 ...)?
       ((.. CONNECTED EXPRESSION ..))?       
  )?
 
  (REMOVE
       (PROPERTY3 PROPERTY4 ...)?
       ((.. CONNECTED EXPRESSION ..))?       
  )?
      
WHERE (.. MATCH EXPRESSION ..) 

Examples:
UPDATE  
 SET 
  first_name='Mike' age='31' hear='brown'
WHERE (id='1234567890')
or
UPDATE  
 SET 
  last_name='Smith'
  (name='live at' or name='work at')

 REMOVE 
  age hear
  (some-relation1='relation-1' AND some-relation2='relation-2'))
WHERE (id='1234567890')

DELETE
DELETE template is:
DELETE (.. MATCH EXPRESSION ..)
Examples:
DELETE (id='1234567890')
or delete network path / network
DELETE (first_name='John') / (name='live at') / (address='US, CA, LA, some address')

Powered by ESG