从Documentum删除记录

时间:2018-07-20 13:54:30

标签: documentum documentum-dql

我需要从Documentum数据库中删除许多记录。因为这些是Documentum对象,所以我不能只是进入后端SQL并删除它们,而是尝试DQL。

Delete from cbs_speciality where speciality_id = 'zzz' 

我得到了错误

Error occured during query execution :[DM_QUERY_E_TABLE_NO_ACCESS]error: "The table, xxx.cbs_speciality, is not registered or you do not have access to it." 

如果我使用

Delete from cbs_speciality where speciality_id = 'zzz' ENABLE (ROWBASE)

我收到语法错误

由于XXX是我们在安装过程中使用的帐户,因此我很确定它具有访问权限,但是如何删除这些项目。

1 个答案:

答案 0 :(得分:1)

Documentum对象删除的语法稍有不同(没有FROM和带有OBJECT的键):

DELETE cbs_speciality OBJECT WHERE speciality_id = 'zzz'