Branchwell

AI Resource Pro / website / scripts / check-existing-tags.sql

1-- Get all unique tags from the blog_posts table
2SELECT DISTINCT unnest(tags) as tag
3FROM blog_posts
4WHERE tags IS NOT NULL
5AND array_length(tags, 1) > 0
6ORDER BY tag;