Branchwell

Become a Pro / website · becomeapro.ai / scripts / check-existing-tags.sql

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