Hi,
You used "d_a" so that output is correct. You can't create the field name
at run-time, but you'd need to do this when you create the query in 2 steps
by using SQL batch:

let $field = select a.prefix('d_') from #11:0
update #11:0 set $field = c

Note: I've not tested it.

Lvc@


On 23 July 2014 15:20, jaya raj <[email protected]> wrote:

> Hi,
>
>      I created X vertex properties are a,b and c
>
>      use update query
>
> *  Before update query result:*
>
>     rid          a    b    c
>
>    #11:0       0   5    10
>
>
>    update #11:0 set d_a = c where b > 1
>
>     *After update query result:*
>
>     rid          a    b    c     d_a
>
>    #11:0       0   5    10    10
>
>  * But we expect this result*
>
>    rid          a    b    c     d_0
>
>    #11:0       0   5    10   10
>
>
> please help me how to create field name using field value (eg: d_a).
>
> --
>
> ---
> 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.
>

-- 

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