如何缩短Alfresco的SQL查询?

时间:2015-07-23 12:49:27

标签: postgresql alfresco

我为Alfresco制作的SQL查询如何缩短?

SELECT string_value AS document_name, audit_created AS creation_date
FROM alf_node node
INNER JOIN alf_node_properties ON (id=node_id)
INNER JOIN alf_qname ON (qname_id=alf_qname.id)
WHERE ns_id IN
(SELECT ns.id FROM alf_namespace AS ns
WHERE ns.uri='http://www.alfresco.org/model/content/1.0')
AND local_name='name'
AND audit_creator = 'admin'
AND audit_created > '2015-05-06'
ORDER BY audit_created;

This is where the query came from.

0 个答案:

没有答案