我試圖在ORIENTDB版本2.1.14與SQLorientdb與SQL語法重命名列
有一個「USER」頂點像
+------+------+-----+
| cc | name | cod |
+------+------+-----+
| 0001 | jhon | 123 |
+------+------+-----+
| 0002 | paul | 567 |
+------+------+-----+
我想改變
重命名列名+------+------+----------+
| cc | name | tax_code |
+------+------+----------+
| 0001 | jhon | 123 |
+------+------+----------+
| 0002 | paul | 567 |
+------+------+----------+
(列名「cod」更改爲「tax_code」且內容不變)
正在尋找http://orientdb.com/docs/2.0/orientdb.wiki/SQL.html 出現一些sql代碼,但沒有與列名稱一起工作。
在orientdb中的sql中有一些過程用來更改列名?或者至少有一些「sp_RENAME」等效命令?
我做的: '改變屬性user.cod名tax_code' 和orientdb說: 'com.orientechnologies.orient.core.exception.OCommandExecutionException:房產 'user.cod' 不exists' ** :(** – el3ctron
出現此異常是因爲user.cod屬性不再存在,並且已替換爲tax_code。 –