Hi,

Can you please help me with one query. Basically i am trying to remove all 
the records related to a given record.

If i change the query below to select records from $g it works but delete 
from $g does not work.

BEGIN
 LET d = SELECT EXPAND( $c ) LET $a = ( select expand(out()) from #15:0 ), 
$b = ( select expand(in()) from #15:0 ),$c = UNIONALL( $a, $b )
 LET e = SELECT EXPAND( outE() ) from $d
 LET f = SELECT EXPAND( inE() ) from $d
 LET g = select expand($g) Let $g = UNIONALL($e, $f, $d)
 LET h = delete from (select expand($g))
 LET deletedRID = DELETE FROM #15:0 
COMMIT 
 RETURN $deletedRID



I have tried the commands from the client using "script sql" batch mode. Is 
there something i am doing wrong.

-- 

--- 
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