orientdb rename column with sql syntax -


i trying rename column name in orientdb version 2.1.14 sql

having "user" vertex like

+------+------+-----+ |  cc  | name | cod | +------+------+-----+ | 0001 | jhon | 123 | +------+------+-----+ | 0002 | paul | 567 | +------+------+-----+ 

i want change to

+------+------+----------+ |  cc  | name | tax_code | +------+------+----------+ | 0001 | jhon |   123    | +------+------+----------+ | 0002 | paul |   567    | +------+------+----------+ 

(the column name "cod" changes "tax_code" , contents not change)

looking in http://orientdb.com/docs/2.0/orientdb.wiki/sql.html appears sql code, nothing work column names.

there procedure in sql in orientdb change column names?, or @ least "sp_rename" equivalent command?

try this:

alter property <class-name>.cod name tax_code 

hope helps

regards.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -