forked from orientechnologies/orientdb
-
Notifications
You must be signed in to change notification settings - Fork 0
SQL Create Vertex
lvca edited this page Dec 22, 2012
·
2 revisions
This command creates a new Vertex into the database. Vertices, together with Edges, are the main components of a Graph-Database. A Vertex is a document of class OGraphVertex or a sub-class. Look also how to Create Edges.
CREATE VERTEX [<class>] [CLUSTER <cluster>] [SET <field> = <expression>[,]*]
1.1.0
> create vertex
> create class V1 extends V
> create vertex V1
> create vertex V1 cluster recent
> create vertex set brand = 'fiat'
> create vertex V1 set brand = 'fiat', name = 'wow'
To know more about other SQL commands look at SQL commands.