April 3, 2020
Estimated Post Reading Time ~ < 1 Min

How do I find all occurrences of a node by name using SQL2

The Problem You want to use a SQL2 query to retrieve all nodes that are named "nameofnode"

The Solution:

SELECT * FROM [nt:base] AS s WHERE LOCALNAME() LIKE "nameofnode"

The LOCALNAME() function returns the node name.
aem4beginner.blogspot


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.

Ad Blocker Detected :(

Please consider supporting us by disabling your ad blocker.

Please Disable your adblocker and Refresh the page to view the site content.