Branchwell

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

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