I have a category "Audio" which has an ID of 7954. I'm using a custom field "enclosure". In some of my posts I have URLs pointing to .mp3 files in the enclosure field.
In MySQL, I can get a listing of all of my posts that have .mp3 enclosures by using:
SELECT * FROM 'wp_postmeta' WHERE meta_value like "%.mp3%"
But how do I then set the category ID of those posts to 7954?
(Member vtxyzzy, I bet you can do this...and combined with my last question, will probably open a huge door of knowledge and understanding...I'm almost getting there. I know there's a join or two involved somehow:)