copy term reference from one to other field I have two fields (fieldtype = term reference) in the same content type and I would like to copy the settings from the first to the second one. After searching for a solution I found this thread but I think the description I need is just the one that is not available: 


  "Copy contents of a CCK node reference field to another CCK node
  reference field"


Can somebody give me some guidelines, or even an explanation how to achieve this?
You could do something like this:

$result = db_query("SELECT nid FROM {node} WHERE type = 'my_type'");
foreach($result as $row){
  $node = node_load($row-&gt;nid, NULL, TRUE); // reset cache
  // Assign one node reference field to another
  $node-&gt;field_termreference_2 = $node-&gt;field_termreference_1;
  node_save($node);
}


If you've got a lot of nodes, you may need to use the Batch API for that.

Alternatively, you may be able to copy the field tables to another field table at the database level with SQL ( backup first )

Something like:

INSERT INTO field_data_field_termreference_2 SELECT * FROM field_data_field_termreference_1;
INSERT INTO field_revision_field_termreference_2 SELECT * FROM field_revision_field_termreference_1;


and clear Drupal caches after that.