Guest User

Untitled

a guest
Nov 24th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.83 KB | None | 0 0
  1. // I'm trying to copy a column with data from a table to another table in MySQL. But I can't wrap my head around it. BOTH TABLES have an id // COLUMN called 'nid' which fits perfectly.
  2.  
  3. // I want TO move the COLUMN called 'field_pref_position_value' FROM the TABLE 'content_field_pref_position' TO the COLUMN 'pref_position' IN the // TABLE 'content_type_transfer'. I already made the COLUMN 'pref_position'.
  4.  
  5. // Something IS wrong WITH my query, it RETURNS no errors but the RESULT: 'Your SQL query has been executed successfully
  6. // ( Query took 0.0017 sec )' WITHOUT updating any COLUMNS at ALL. What am I missing?
  7.  
  8. UPDATE content_type_transfer JOIN content_field_pref_position ON content_field_pref_position.nid = content_type_transfer.nid SET content_type_transfer.pref_position = content_field_pref_position.field_pref_position_value
Add Comment
Please, Sign In to add comment