Hi,
I failed with sql and then i have tried with java api

OrientGraph g=new OrientGraph(currentPath); 
String colorToAdd="blue";
Iterable<Vertex> result=g.command(new OSQLSynchQuery<Vertex>("select from 
Person where perName='Luca'")).execute();
for(Vertex v:result){
OTrackedList track=v.getProperty("favColours");
List<String> lista=track;
String addString="'";
for(String s:lista){
addString+=s+"','";
}
addString+=colorToAdd+"'";
String query="update Person set favColours = [" + addString  + "]  where 
perName='Luca'";
g.command(new OCommandSQL(query)).execute();
} 
g.shutdown();

Regards,
Alessandro

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to