Branchwell

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

Raw 168 B on b7854f3692d64213a2fce644d0b5101d3e345b03
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;