move Drupal tags from one vocabulary into another

/ Published in: SQL
Save to your folder(s)

I had several vocabularies but wanted to merge them into one.
A simple query does this for you.

The vocabulary_id where I wanted to merge all the tags into is 3
The vocabulary_id where the tags are to be merged from is 7, 8 and 12

Copy this code and paste it in your HTML
  1. UPDATE term_data SET vid = 3 WHERE vid IN(7, 8, 12)

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.