Writing DQL script for multi object ids using "UPDATE dm_job OBJECTS SET is_inactive = true WHERE r_
I have mult object ids and I want to insert the object ids into this DQL
update dm_job objects set is_inactive=true where r_object='<targer r_object_id>'
I do have muti ids please how do I write DQL in script form to update all the ids using the DQL
Thanks
Comments
-
Please consider moving this question as-is (no need to recreate) to the proper forum for maximum visibility. Questions written to the users' own "Discussions" space don't get the same amount of attention and questions can go unanswered for a long time.
You can do so by selecting "Move" under ACTIONS along the upper-right. Then search for and select: "Documentum" (Developer Network) which would be the most relevant for this question.
0 -
You can use "IN" in you DQL query:
UPDATE dm_job OJBECTS SET ...
WHERE r_object_id IN ('<ID1>', '<ID2>'...);The IN keyword can also be used, as in SQL, with a subquery:
UPDATE dm_job OBJECTS
SET ...
WHERE r_object_id IN (
SELECT <anything>
);0 -
you can create script using excel or edit+ and then run in samson using @filename.dql
UPDATE dm_job OJBECTS SET ... WHERE r_object_id='<ID1>';
UPDATE dm_job OJBECTS SET ... WHERE r_object_id='<ID2>';
UPDATE dm_job OJBECTS SET ... WHERE r_object_id='<ID3>';
UPDATE dm_job OJBECTS SET ... WHERE r_object_id='<ID4>';
..
..
..
..0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 155 General Questions
- 148 Thrust Services
- 57 Developer Hackathon
- 37 Thrust Studio
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 190 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 9 XM Fax
- Follow Categories