Doc­u­men­ta­tion/Graph Query Language

INSERT

The insert state­ment is used to cre­ate new instances of objects and fill the attribute with new values.

INSERT INTO identifier insert_expression
  • An insert state­ment con­tains an iden­ti­fier and an insert_expression.
  • For exam­ple the query ‘INSERT INTO User VALUES(Name=’Simpson’, FirstName=’Homer’, Age=’37’)’ cre­ates a new user object and fills the attrib­utes Name, First­Name and Age.


insert_expression

EMPTY | VALUES ( assign_value [, assign_value] )
  • An insert expres­sion con­tains an assign value or a comma sep­a­rated list of values.


assign_value

identifier = expression |
identifier = SETREF tuple |
identifier = dbobject_list |
identifier = dbobject_set


dbobject_list

LISTOF tuple_list


dbobject_set

SETOF tuple_list


tuple_list

( expression [ ListParametersForExpression ]
[, expression [ ListParametersForExpression ] ] )


Value

string_literal | number


List­Pa­ra­me­ters­For­Ex­pres­sion

 : ( ) |
 : ( Value [ , Value ] )
  • May con­tains noth­ing a list of val­ues, please refer to the doc­u­men­ta­tion of the par­tic­u­lar EdgeType.