vlookup in mysql

I love excel’s vlookup tool. it’s great for replacing stuff in one spreadsheet using key values and whatnot

UPDATE content_type_er_resources AS t
LEFT JOIN collections_resources AS e
ON e.id = t.field_er_resource_uid_value
SET t.field_er_resource_notes_value = e.res_notes

this is essentially the same thing in sql and it saved a bunch of time.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>